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.

language server: Fix restarts sometimes not working for buffers open in go-to-definition view (#27655)

Piotr Osiewicz24ad97008bb1
diff --git a/crates/collab/src/tests/following_tests.rs b/crates/collab/src/tests/following_tests.rs
index 6a449dfd2f2..a9ee27bff16 100644
--- a/crates/collab/src/tests/following_tests.rs
+++ b/crates/collab/src/tests/following_tests.rs
@@ -573,7 +573,7 @@ async fn test_following_tab_order(
client_a
.fs()
.insert_tree(
- "/a",
+ path!("/a"),
json!({
"1.txt": "one",
"2.txt": "two",
@@ -581,7 +581,7 @@ async fn test_following_tab_order(
}),
)
.await;
- let (project_a, worktree_id) = client_a.build_local_project("/a", cx_a).await;
+ let (project_a, worktree_id) = client_a.build_local_project(path!("/a"), cx_a).await;
active_call_a
.update(cx_a, |call, cx| call.set_location(Some(&project_a), cx))
.await
diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs
index 32b4c05841f..b237e3c6613 100644
--- a/crates/project/src/lsp_store.rs
+++ b/crates/project/src/lsp_store.rs
@@ -3891,7 +3891,7 @@ impl LspStore {
*refcount += 1;
}
- if !ignore_refcounts || *refcount == 1 {
+ if ignore_refcounts || *refcount == 1 {
local.register_buffer_with_language_servers(buffer, cx);
}
if !ignore_refcounts {