Fix LSP message handling when the handler doesn't get strings, somehow

This commit is contained in:
w0rp 2018-06-01 14:49:13 +01:00
parent 201f8519d9
commit fae9167083
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

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