mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
fix(lsp): do not index nil client in progress (#16262)
This commit is contained in:
parent
4174244d8b
commit
8f31b218f9
@ -28,6 +28,7 @@ local function progress_handler(_, result, ctx, _)
|
|||||||
local client_name = client and client.name or string.format("id=%d", client_id)
|
local client_name = client and client.name or string.format("id=%d", client_id)
|
||||||
if not client then
|
if not client then
|
||||||
err_message("LSP[", client_name, "] client has shut down after sending the message")
|
err_message("LSP[", client_name, "] client has shut down after sending the message")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
local val = result.value -- unspecified yet
|
local val = result.value -- unspecified yet
|
||||||
local token = result.token -- string or number
|
local token = result.token -- string or number
|
||||||
|
Loading…
Reference in New Issue
Block a user