language server: Fix restarts sometimes not working for buffers open in go-to-definition view (#27655)
Closes #ISSUE Release Notes: - Fixed language server restarts sometimes not restarting a language server.
This commit is contained in:
parent
f6c81a0595
commit
24ad97008b
2 changed files with 3 additions and 3 deletions
|
@ -573,7 +573,7 @@ async fn test_following_tab_order(
|
||||||
client_a
|
client_a
|
||||||
.fs()
|
.fs()
|
||||||
.insert_tree(
|
.insert_tree(
|
||||||
"/a",
|
path!("/a"),
|
||||||
json!({
|
json!({
|
||||||
"1.txt": "one",
|
"1.txt": "one",
|
||||||
"2.txt": "two",
|
"2.txt": "two",
|
||||||
|
@ -581,7 +581,7 @@ async fn test_following_tab_order(
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.await;
|
.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
|
active_call_a
|
||||||
.update(cx_a, |call, cx| call.set_location(Some(&project_a), cx))
|
.update(cx_a, |call, cx| call.set_location(Some(&project_a), cx))
|
||||||
.await
|
.await
|
||||||
|
|
|
@ -3891,7 +3891,7 @@ impl LspStore {
|
||||||
*refcount += 1;
|
*refcount += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ignore_refcounts || *refcount == 1 {
|
if ignore_refcounts || *refcount == 1 {
|
||||||
local.register_buffer_with_language_servers(buffer, cx);
|
local.register_buffer_with_language_servers(buffer, cx);
|
||||||
}
|
}
|
||||||
if !ignore_refcounts {
|
if !ignore_refcounts {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue