mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
lsp: don't invoke vim.notify on sigterm of language server
This commit is contained in:
parent
c50b737d6f
commit
58be81d645
@ -542,7 +542,7 @@ function lsp.start_client(config)
|
||||
client_ids[client_id] = nil
|
||||
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)
|
||||
vim.schedule(function()
|
||||
vim.notify(msg, vim.log.levels.WARN)
|
||||
|
Loading…
Reference in New Issue
Block a user