Fix #2460 - Do not track when LSP linters are busy

This commit is contained in:
w0rp 2019-05-01 20:49:03 +01:00
parent 114198e082
commit eae124e8ce
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -33,8 +33,6 @@ function! s:HandleLSPDiagnostics(conn_id, response) abort
return
endif
call ale#engine#MarkLinterInactive(l:info, l:linter_name)
if s:ShouldIgnore(l:buffer, l:linter_name)
return
endif
@ -381,6 +379,10 @@ function! s:CheckWithLSP(linter, details) abort
if a:linter.lsp is# 'tsserver'
let l:message = ale#lsp#tsserver_message#Geterr(l:buffer)
let l:notified = ale#lsp#Send(l:id, l:message) != 0
if l:notified
call ale#engine#MarkLinterActive(l:info, a:linter)
endif
else
let l:notified = ale#lsp#NotifyForChanges(l:id, l:buffer)
endif
@ -391,10 +393,6 @@ function! s:CheckWithLSP(linter, details) abort
let l:save_message = ale#lsp#message#DidSave(l:buffer)
let l:notified = ale#lsp#Send(l:id, l:save_message) != 0
endif
if l:notified
call ale#engine#MarkLinterActive(l:info, a:linter)
endif
endfunction
function! ale#lsp_linter#CheckWithLSP(buffer, linter) abort