summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2022-03-02 16:51:50 +0000
committerw0rp <devw0rp@gmail.com>2022-03-02 16:51:50 +0000
commitb42153eb1786fbff1c926e60c23ba82b0108f0cc (patch)
tree7a2785038b5fcadf033614bca6b520e23b63dc3a
parent66b2d994a153990bee93d087c798c82931cdaad5 (diff)
downloadale-b42153eb1786fbff1c926e60c23ba82b0108f0cc.zip
Fix #4098 - Clear LSP data when servers crash
-rw-r--r--autoload/ale/lsp.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/lsp.vim b/autoload/ale/lsp.vim
index 02723f56..a5c9dff9 100644
--- a/autoload/ale/lsp.vim
+++ b/autoload/ale/lsp.vim
@@ -467,6 +467,7 @@ function! ale#lsp#StartProgram(conn_id, executable, command) abort
let l:options = {
\ 'mode': 'raw',
\ 'out_cb': {_, message -> ale#lsp#HandleMessage(a:conn_id, message)},
+ \ 'exit_cb': { -> ale#lsp#Stop(a:conn_id) },
\}
if has('win32')