c065f28
Move assets to their own crate, load keymaps in vim tests
Click to expand commit body
Also, move assets folder to the top-level.
Co-authored-by: Keith Simmons <keith@zed.dev>
Max Brunsfeld
and
Keith Simmons
created
e0096ec
Move keymap_file module into settings crate
Click to expand commit body
Co-authored-by: Keith Simmons <keith@zed.dev
Max Brunsfeld
and
Keith Simmons
created
4b295f5
Handle editor cancel in pane in order to dismiss find toolbar
Keith Simmons
created
0ca4c99
Add logging when atlas allocator fails to allocate
Keith Simmons
created
3844634
Hold the state lock while responding to guest joining a project
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
7abd3a9
Make atlas allocation fallable and skip rendering icons and paths when it fails
Keith Simmons
created
3c116e3
Reraise editor events in Project Search and activate workspace item from them
Keith Simmons
created
9a8b038
Replace synchronous `Store` lock with an async lock
Click to expand commit body
This also fixes some failures due to `broadcast` and `update_contacts_for_users`
being fallible. As part of this commit, these two functions don't return `Result`
anymore: the reason for this change is that we don't want a request to fail only
because a peer disconnected while we were trying to broadcast a message to them.
Antonio Scandurra
created
273ee0a
Acquire guest connection ids after save request has been forwarded
Click to expand commit body
This fixes a bug that would cause the server to broadcast the save
message to guests that have potentially left the project.
Antonio Scandurra
created
c3927c5
Simulate random guest disconnection and reconnection
Antonio Scandurra
created
f99a143
Distribute operation workload evenly across peers in randomized test
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
02f96c6
Simulate parallelism among peers correctly in randomized collab test
Click to expand commit body
Previously they were all using the same foreground executor, which was
not properly simulating concurrency among tasks from different peers.
Antonio Scandurra
created
bb8dc61
Allow taking an `Arc<Deterministic>` in `[gpui::test]`-decorated tests
Antonio Scandurra
created
28f44a3
Merge pull request #787 from zed-industries/buffer-divergence
Click to expand commit body
Fix divergence bug when peer reconnects reusing a prior replica id
Antonio Scandurra
created
f9e0899
Fix divergence bug when peer reconnects reusing a prior replica id
Click to expand commit body
We forgot to observe the footprint of the reconnecting replica's prior
undos into the local clock. This could cause the replica to generate
edits with a version strictly smaller than what other peers may have
observed. As such, those peers would think they had already seen those
edits and skip them.
Over time, I think we may end up having multiple services, so it seems like a good opportunity to name this one more specifically while the cost is low. It just seems like naming it "zed" and "zed-server" leaves it a bit open ended.
Nathan Sobo
created
af674e1
Merge pull request #770 from zed-industries/better-settings-schema
We're enabling the log crate feature everywhere, but only using it on the server for now.
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo
and
Antonio Scandurra
created
53a7f9c
Introduce a timeout when processing incoming messages
Click to expand commit body
We have an hypothesis that the server gets stuck while processing
an incoming message, either because the buffer fills up or because
a handler never completes. This should mitigate that and, once we
add logging, give us some clue as to what is causing it exactly.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
32fd4eb
Insert project id in connection's project during project registration
Click to expand commit body
...in contrast to doing so during worktree registration. This fixes a
randomized test failure which would panic because store invariants would be
violated. This would happen when a peer disconnected before it had a chance
to register a worktree because, when removing all the state associated with
that peer upon disconnection, we would notice the registered project without
however finding it in the peer's connection state.
Antonio Scandurra
created
222cd09
Allow host to reconnect to the server in randomized test
Antonio Scandurra
created
c994263
Don't insert an empty vector in `Project::buffer_snapshots`
Click to expand commit body
Other code paths rely on at least a version always being there, so
we should enforce that invariant everywhere.
Antonio Scandurra
created
663beab
Avoid panicking when receiving a request for a dropped buffer
Antonio Scandurra
created
3daaef0
Replace `postage::oneshot` with `futures::channel::oneshot`
Click to expand commit body
This fixes an error in the randomized test that would cause the future
returned from `Worktree::share` to never finish due to a bug in `postage`
that causes its waker to not be notified upon drop.
Antonio Scandurra
created
da97601
Allow `simulate_guest` and `simulate_host` to fail when host disconnects
Antonio Scandurra
created
fae9048
Remove non-determinism from `Peer` caused by using std's `HashMap`
Antonio Scandurra
created
3e40b5b
dynamically inject theme names and language properties into schema
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Keith Simmons <keith@zed.dev>
Max Brunsfeld
,
Nathan Sobo
, and
Keith Simmons
created
5242a3a
Restructure action macro to assign a namespace to every action
Click to expand commit body
Also, allow arbitrary types to be used as Actions via the impl_actions macro
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Keith Simmons <keith@zed.dev>
Max Brunsfeld
,
Nathan Sobo
, and
Keith Simmons
created
035cd37
Add explicit types for LanguageOverrides and Themes to SettingsFileContent in order to improve completions in zed settings file