mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(lsp): do not reset buf version when detaching client (#29242)
This commit is contained in:
@@ -520,7 +520,6 @@ local function buf_detach_client(bufnr, client)
|
|||||||
end
|
end
|
||||||
|
|
||||||
client.attached_buffers[bufnr] = nil
|
client.attached_buffers[bufnr] = nil
|
||||||
util.buf_versions[bufnr] = nil
|
|
||||||
|
|
||||||
local namespace = lsp.diagnostic.get_namespace(client.id)
|
local namespace = lsp.diagnostic.get_namespace(client.id)
|
||||||
vim.diagnostic.reset(namespace, bufnr)
|
vim.diagnostic.reset(namespace, bufnr)
|
||||||
@@ -605,6 +604,7 @@ local function buf_attach(bufnr)
|
|||||||
buf_detach_client(bufnr, client)
|
buf_detach_client(bufnr, client)
|
||||||
end
|
end
|
||||||
attached_buffers[bufnr] = nil
|
attached_buffers[bufnr] = nil
|
||||||
|
util.buf_versions[bufnr] = nil
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- TODO if we know all of the potential clients ahead of time, then we
|
-- TODO if we know all of the potential clients ahead of time, then we
|
||||||
|
Reference in New Issue
Block a user