aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-09 13:05:41 -0800
committerGitHub <noreply@github.com>2021-11-09 22:05:41 +0100
commit8f31b218f97d143d909d4b8b86dc528e70c151e3 (patch)
tree21507ef7b99bb624c6df1439eeb95aab5c28b2a4 /runtime/lua/vim/lsp/handlers.lua
parent4174244d8b6718c703f8b8d3e907809bde9430bd (diff)
downloadrneovim-8f31b218f97d143d909d4b8b86dc528e70c151e3.tar.gz
rneovim-8f31b218f97d143d909d4b8b86dc528e70c151e3.tar.bz2
rneovim-8f31b218f97d143d909d4b8b86dc528e70c151e3.zip
fix(lsp): do not index nil client in progress (#16262)
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 957bee0221..a561630c2b 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -28,6 +28,7 @@ local function progress_handler(_, 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
local val = result.value -- unspecified yet
local token = result.token -- string or number