From 8f31b218f97d143d909d4b8b86dc528e70c151e3 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 9 Nov 2021 13:05:41 -0800 Subject: [PATCH] fix(lsp): do not index nil client in progress (#16262) --- runtime/lua/vim/lsp/handlers.lua | 1 + 1 file changed, 1 insertion(+) 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