zed/crates
Antonio Scandurra d36a4888db Ensure worktrees have been sent before responding with definitions
Changing the frequency at which we update worktrees highlighted a
problem in the randomized tests that was causing clients to receive
a definition to a worktree *before* observing the registration of
the worktree itself. This was most likely caused by #1224 because
the scenario that pull request enabled was the following:

- Guest requests a definition pointing to a non-existant worktree
- Server forwards the request to the host
- Host sends an `UpdateProject` message
- Host sends a response to the definition request
- Server observes the `UpdateProject` message and tries to acquire
  the store
- Given that we're waiting, the server goes ahead to process the
  response for the definition request, responding *before*
  `UpdateProject` is forwarded
- Server finally forwards `UpdateProject` to the guest

This commit ensures that, after forwarding a project request and getting a
response, we acquire a lock to the store again to ensure the project still
exists. This has the effect of ordering the forwarded request *after* any
message that was received prior to the response and for which we are still
waiting to acquire a lock to the store.
2022-07-01 11:45:30 +02:00
..
activity_indicator Show LSP status and auto update status in one status bar indicator 2022-06-29 16:54:01 -07:00
assets
auto_update Show LSP status and auto update status in one status bar indicator 2022-06-29 16:54:01 -07:00
breadcrumbs
chat_panel Accept a datetime range when querying project activity 2022-06-21 14:03:10 +02:00
cli Cap MessageStream buffer size to 1MB 2022-05-31 11:16:32 +02:00
client Ensure that usernames, user ids, and client ids match in random collaboration test 2022-06-30 14:51:22 -07:00
clock
collab Ensure worktrees have been sent before responding with definitions 2022-07-01 11:45:30 +02:00
collections
command_palette add test for filter 2022-06-28 13:45:34 -07:00
contacts_panel Adjust pane, tab, panel management bindings to match VS Code 2022-06-29 15:33:46 -07:00
context_menu Use a different fit mode for tooltips 2022-06-15 16:45:04 +02:00
diagnostics Fix editor tests after changing the semantics of is_dirty 2022-06-17 12:57:40 +02:00
editor add hover popover setting 2022-06-27 16:21:22 -07:00
file_finder Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
fsevent 🎨 2022-05-23 09:48:00 +02:00
fuzzy
go_to_line Introduce keyboard navigation in context menus 2022-05-26 16:36:30 +02:00
gpui Update command palette filter from vim mode more proactively 2022-06-29 11:58:12 -07:00
gpui_macros
journal Prevent setting files from showing up in project and contacts panels 2022-06-14 14:47:16 +02:00
language In most languages, use prev non-empty line as basis for preserving indent 2022-06-28 12:21:54 -07:00
lsp Ignore tokens that were not created via WorkDoneProgressCreate 2022-06-28 10:08:43 +02:00
menu Require that PartialEq is implemented for Action 2022-06-06 09:18:44 +02:00
outline Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
picker Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
project WIP - try representing snapshots_to_send as a watch 2022-06-30 18:04:31 -07:00
project_panel Adjust pane, tab, panel management bindings to match VS Code 2022-06-29 15:33:46 -07:00
project_symbols Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
rpc Split worktree updates when a peer joins an already-shared project 2022-06-30 16:49:56 +02:00
search Display tooltip for select prev/next match buttons 2022-06-16 14:37:33 +02:00
settings add hover popover setting 2022-06-27 16:21:22 -07:00
snippet
sum_tree Upgrade deps to avoid multiple versions of transitive deps 2022-06-02 17:38:33 -07:00
text Don't compute fingerprint for every text summary 2022-06-17 15:15:27 +02:00
theme working jump to definition with tests 2022-06-24 15:09:31 -07:00
theme_selector Switch MouseEventHandler to use MouseRegions 2022-05-26 20:00:01 -06:00
util fix bug in marked_range utils 2022-05-26 17:02:05 -07:00
vim Update command palette filter from vim mode more proactively 2022-06-29 11:58:12 -07:00
workspace Adjust pane, tab, panel management bindings to match VS Code 2022-06-29 15:33:46 -07:00
zed Show LSP status and auto update status in one status bar indicator 2022-06-29 16:54:01 -07:00