mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
lsp: don't invoke vim.notify on sigterm of language server
This commit is contained in:
@@ -542,7 +542,7 @@ function lsp.start_client(config)
|
|||||||
client_ids[client_id] = nil
|
client_ids[client_id] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if code ~= 0 or signal ~= 0 then
|
if code ~= 0 or (signal ~= 0 and signal ~= 15) then
|
||||||
local msg = string.format("Client %s quit with exit code %s and signal %s", client_id, code, signal)
|
local msg = string.format("Client %s quit with exit code %s and signal %s", client_id, code, signal)
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.notify(msg, vim.log.levels.WARN)
|
vim.notify(msg, vim.log.levels.WARN)
|
||||||
|
Reference in New Issue
Block a user