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:
Piotr Osiewicz
2025-03-28 11:46:46 +00:00
committed by GitHub
parent f6c81a0595
commit 24ad97008b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {