diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-05-25 11:45:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 11:45:45 -0600 |
commit | 8c4e62351f67dd6a44f67f3a2b6f3a3551acf475 (patch) | |
tree | 91a2f88fb83a9adfcedab4d44a6b86163f176f7a /runtime/lua/vim/lsp.lua | |
parent | fa3492c5f7645feb979c767046b6ff335ea9d6ca (diff) | |
download | rneovim-8c4e62351f67dd6a44f67f3a2b6f3a3551acf475.tar.gz rneovim-8c4e62351f67dd6a44f67f3a2b6f3a3551acf475.tar.bz2 rneovim-8c4e62351f67dd6a44f67f3a2b6f3a3551acf475.zip |
refactor(lsp): remove redundant client cleanup (#18744)
The client state is cleaned up both in client.stop() as well as in the
client.on_exit() handler. Technically, the client has not actually
stopped until the on_exit handler is called, so we should just do this
cleanup there and remove it from client.stop().
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 07987ee003..dac2860690 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1188,12 +1188,6 @@ function lsp.start_client(config) --- ---@param force (bool, optional) function client.stop(force) - lsp.diagnostic.reset(client_id, all_buffer_active_clients) - changetracking.reset(client_id) - for _, client_ids in pairs(all_buffer_active_clients) do - client_ids[client_id] = nil - end - local handle = rpc.handle if handle:is_closing() then return |