mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): do not attempt to index nil client in progress handler (#16463)
This commit is contained in:
parent
6e70b7b31d
commit
b16b7021ef
@ -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)
|
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
|
||||||
client.messages.progress[token] = {}
|
client.messages.progress[token] = {}
|
||||||
return vim.NIL
|
return vim.NIL
|
||||||
|
Loading…
Reference in New Issue
Block a user