2b8685c
Insert random delays when sending and receiving websocket messages in tests
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
d241ab6
Don't store operations for remote buffers we haven't yet opened
Click to expand commit body
This used to be needed, but we think with our improvements to message ordering that we'll never miss operations that were applied after opening a remote buffer.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
and
Max Brunsfeld
created
afa33c9
Clear shared buffers when unsharing projects
Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
and
Max Brunsfeld
created
469ee55
Get most tests passing when respecting wake order for foreground tasks in Deterministic executor
Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
If you want to call `abs_path` or `load`, the file needs to be local. You call `as_local` which returns `Option<dyn LocalFile>` with those local-only methods. I think this makes it more explicit what works only locally vs everywhere.
I'd like to only have methods related to absolute paths on local worktrees, because it's not really possible to implement them on remote worktrees since we don't know the full path being shared and wouldn't have anything to do with it anyway if we did.
2a6f06f
Merge pull request #359 from zed-industries/defer
Click to expand commit body
Fix panic in ProjectDiagnosticsEditor::open_excerpts by introducing new defer feature to GPUI
Nathan Sobo
created
e61a5b1
Defer pane interaction when opening excerpts in diagnostics view
Click to expand commit body
Activating a new item causes the current item to be deactivated. We're the current item, but we're on the stack, so we panic if we try to do this synchronously. If we use defer to wait until we're off the stack it works.
It's like update, but happens after the current effect instead of synchronously. Also, it doesn't allow the callback to return a value because there would be nothing to do with it.
This takes a closure that will be enqueued as an effect to ensure there are no entities on the stack.
Nathan Sobo
created
b1931fb
Merge pull request #358 from zed-industries/move-buffers-to-project
Click to expand commit body
Move buffers to project
Nathan Sobo
created
8341820
Assign diagnostics on buffer even if it doesn't have a language
Click to expand commit body
This shouldn't be necessary in practice but makes testing easier.
Nathan Sobo
created
8bf628c
Update new buffers with existing diagnostics in Project – after assigning language
Nathan Sobo
created
2773cab
Simplify opening buffers in the Project and assign language synchronously
Antonio Scandurra
created
31dfd01
Make `add_local_worktree` private and use `find_or_create_local_worktree`
Click to expand commit body
The former always adds a worktree, even if we have one already in the
project and that could be misused. The public API should always search
for a local worktree containing the requested path first so that the
project can uphold invariants about which worktrees it has.