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
0b8eed6
Merge pull request #765 from zed-industries/yield-lsp
Click to expand commit body
Don't starve UI thread when rapidly receiving LSP messages
Antonio Scandurra
created
80d55fd
Don't starve UI thread when rapidly receiving LSP messages
Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Nathan Sobo
and
Antonio Scandurra
created
7a151ff
Merge pull request #764 from zed-industries/refine-event-handlers-behavior
Click to expand commit body
Calculate hit-box based on visible bounds in `{Mouse}EventHandler`
Nathan Sobo
created
b396909
Calculate hitbox based on visible bounds in `{Mouse}EventHandler`
Click to expand commit body
This is in contrast to not dispatching the event altogether in `Flex` when
the event is not contained in the flex element bounds. That approach was
problematic because it didn't give an opportunity to `MouseEventHandler`s
to handle mouse move events when they didn't intersect with the element bounds,
causing elements to never clear their hover state, cursor style, etc.
Antonio Scandurra
created
73f2fd6
Pass visible bounds to `Element::dispatch_event`
Antonio Scandurra
created
ae415ee
Merge pull request #763 from zed-industries/inconsistent-diagnostic-state
Click to expand commit body
Fix bad diagnostic state when restarting a language server w/ a running diagnostic task
Antonio Scandurra
created
7c21b61
Merge pull request #748 from zed-industries/fix-outline-panic
Click to expand commit body
Don't assume there are always matches in outline view
Antonio Scandurra
created
52251c3
Merge pull request #745 from zed-industries/scroll-tabs
Click to expand commit body
Allow pane tabs to be scrolled when they overflow
Antonio Scandurra
created
f73de20
Fix diagnostic updates after restarting an LSP w/ a pending diagnostic job
Max Brunsfeld
created
b354af7
Use an unbounded channel in gpui test helper methods
Click to expand commit body
The bounded channel could fill up when many events were emitted in one
effect cycle.
Max Brunsfeld
created
ce54701
Merge pull request #759 from zed-industries/breadcrumb-multibuffer-fix
Click to expand commit body
Update breadcrumbs when multibuffers' excerpts change
Max Brunsfeld
created
ec837fa
Update breadcrumbs when multibuffers' excerpts change
Max Brunsfeld
created
8f38ac8
Tweak structure of Project::on_lsp_progress so it can be auto-formatted
Click to expand commit body
Previously, rustfmt seems to have given up on formatting this method.
Max Brunsfeld
created
f9e1b4d
Merge pull request #758 from zed-industries/open-excerpts-in-same-pane
Click to expand commit body
Don't activate the next pane when opening excerpts
Max Brunsfeld
created
ea63df0
Don't activate the next pane when opening excerpts
Max Brunsfeld
created
3d8e4ad
Merge pull request #757 from zed-industries/restructure-settings
Click to expand commit body
Enable language specific tab sizes
Max Brunsfeld
created
67b15ee
Use language specific tabsize in editor commands