diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-01 14:49:13 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-01 14:49:13 +0100 |
commit | fae9167083ed9df5743f6bf4e2b040f880601e49 (patch) | |
tree | fd55d46f78b34a2fa3821c18345badcb5df38f77 | |
parent | 201f8519d97ff3805b8d35b683e4793a6d3209fa (diff) | |
download | ale-fae9167083ed9df5743f6bf4e2b040f880601e49.zip |
Fix LSP message handling when the handler doesn't get strings, somehow
-rw-r--r-- | autoload/ale/lsp.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale/lsp.vim b/autoload/ale/lsp.vim index 8db9348f..c1d04dbf 100644 --- a/autoload/ale/lsp.vim +++ b/autoload/ale/lsp.vim @@ -207,6 +207,11 @@ function! ale#lsp#HandleOtherInitializeResponses(conn, response) abort endfunction function! ale#lsp#HandleMessage(conn, message) abort + if type(a:message) != type('') + " Ignore messages that aren't strings. + return + endif + let a:conn.data .= a:message " Parse the objects now if we can, and keep the remaining text. |