From 8559731e0d5bb570dcbb427746d10299d12e2889 Mon Sep 17 00:00:00 2001 From: CharlesChen0823 Date: Fri, 27 Sep 2024 14:55:35 +0800 Subject: [PATCH] project: Fix worktree store event missing in remote projects (#18376) Release Notes: - N/A --- crates/project/src/project.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index fa373af619..b91250e6b2 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();