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

Release Notes:

- N/A
This commit is contained in:
CharlesChen0823 2024-09-27 14:55:35 +08:00 committed by GitHub
parent 02d0561586
commit 8559731e0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();