mirror of
https://github.com/neovim/neovim.git
synced 2026-07-20 08:01:46 +00:00
fix(lsp): clear push diagnostics on detach #40634
Problem: when an LS client detaches from the buffer, only pull diagnostics are cleared via capability framework. Push diagnostics remain stuck even when client stops/restarts. Solution: clear push diagnostics on client detach. ref #33864
This commit is contained in:
@@ -1436,6 +1436,8 @@ function Client:_on_detach(bufnr)
|
||||
end
|
||||
end
|
||||
|
||||
vim.diagnostic.reset(vim.lsp.diagnostic.get_namespace(self.id, false), bufnr)
|
||||
|
||||
changetracking.reset_buf(self, bufnr)
|
||||
|
||||
self:_text_document_did_close_handler(bufnr)
|
||||
|
||||
Reference in New Issue
Block a user