Skip to content

Commit

Permalink
Fix LSP message handling when the handler doesn't get strings, somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rp committed Jun 1, 2018
1 parent fd49c2d commit a8951cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/ale/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a8951cc

Please sign in to comment.