From fae9167083ed9df5743f6bf4e2b040f880601e49 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 1 Jun 2018 14:49:13 +0100 Subject: Fix LSP message handling when the handler doesn't get strings, somehow --- autoload/ale/lsp.vim | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3