Merge pull request #14059 from mjlbach/fix/no_notification_lsp_sigterm

lsp: don't invoke vim.notify on sigterm of language server
This commit is contained in:
Michael Lingelbach 2021-03-04 16:02:43 -08:00 committed by GitHub
commit 115488105d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)