fix(lsp): cancel watchers when closing a client

This commit is contained in:
Lewis Russell
2024-02-07 13:05:33 +00:00
parent bf1e098d97
commit 816b56f878
3 changed files with 13 additions and 1 deletions

View File

@@ -727,6 +727,7 @@ function Client:_stop(force)
rpc.terminate()
self._graceful_shutdown_failed = true
end
vim.lsp._watchfiles.cancel(self.id)
end)
end