Do not bother user if not in debug.
@@ -99,14 +99,18 @@ function! s:HandleMessage(job, lines, event) abort
endif
endwhile
elseif a:event == 'stderr'
+ if $LANGUAGECLIENT_DEBUG
call s:Echoerr('LanguageClient stderr: ' . string(a:lines))
+ endif
elseif a:event == 'exit'
if a:lines !=# '0'
echomsg 'LanguageClient exited with: ' . string(a:lines)
endif
else
+ if $LANGUAGECLIENT_DEBUG
call s:Echoerr('Unknown event: ' . a:event)
endif
+ endif
endfunction
function! s:HandleStdoutVim(job, data) abort
