Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project: Fix worktree store event missing in remote projects (#18376)

CharlesChen08238559731e0d5b
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs
index fa373af6195..b91250e6b2c 100644
--- a/crates/project/src/project.rs
+++ b/crates/project/src/project.rs
@@ -886,6 +886,9 @@ impl Project {
cx.spawn(move |this, cx| Self::send_buffer_ordered_messages(this, rx, cx))
.detach();
+ cx.subscribe(&worktree_store, Self::on_worktree_store_event)
+ .detach();
+
cx.subscribe(&buffer_store, Self::on_buffer_store_event)
.detach();
cx.subscribe(&lsp_store, Self::on_lsp_store_event).detach();