diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-29 04:03:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 10:03:57 +0100 |
commit | b16b7021efe905a0e69731ffa13e6d187fdddb8d (patch) | |
tree | 6eb7d8df276f47897124773073841874c73cedcd /runtime/lua/vim/lsp/handlers.lua | |
parent | 6e70b7b31d224d94abbd6bc66a0b64d7db88f326 (diff) | |
download | rneovim-b16b7021efe905a0e69731ffa13e6d187fdddb8d.tar.gz rneovim-b16b7021efe905a0e69731ffa13e6d187fdddb8d.tar.bz2 rneovim-b16b7021efe905a0e69731ffa13e6d187fdddb8d.zip |
fix(lsp): do not attempt to index nil client in progress handler (#16463)
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index fa4f2b22a5..ebf504fd42 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -70,6 +70,7 @@ M['window/workDoneProgress/create'] = function(_, result, ctx) local client_name = client and client.name or string.format("id=%d", client_id) if not client then err_message("LSP[", client_name, "] client has shut down after sending the message") + return end client.messages.progress[token] = {} return vim.NIL |