Fix #2460 - Do not track when LSP linters are busy
This commit is contained in:
parent
114198e082
commit
eae124e8ce
@ -33,8 +33,6 @@ function! s:HandleLSPDiagnostics(conn_id, response) abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call ale#engine#MarkLinterInactive(l:info, l:linter_name)
|
|
||||||
|
|
||||||
if s:ShouldIgnore(l:buffer, l:linter_name)
|
if s:ShouldIgnore(l:buffer, l:linter_name)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
@ -381,6 +379,10 @@ function! s:CheckWithLSP(linter, details) abort
|
|||||||
if a:linter.lsp is# 'tsserver'
|
if a:linter.lsp is# 'tsserver'
|
||||||
let l:message = ale#lsp#tsserver_message#Geterr(l:buffer)
|
let l:message = ale#lsp#tsserver_message#Geterr(l:buffer)
|
||||||
let l:notified = ale#lsp#Send(l:id, l:message) != 0
|
let l:notified = ale#lsp#Send(l:id, l:message) != 0
|
||||||
|
|
||||||
|
if l:notified
|
||||||
|
call ale#engine#MarkLinterActive(l:info, a:linter)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let l:notified = ale#lsp#NotifyForChanges(l:id, l:buffer)
|
let l:notified = ale#lsp#NotifyForChanges(l:id, l:buffer)
|
||||||
endif
|
endif
|
||||||
@ -391,10 +393,6 @@ function! s:CheckWithLSP(linter, details) abort
|
|||||||
let l:save_message = ale#lsp#message#DidSave(l:buffer)
|
let l:save_message = ale#lsp#message#DidSave(l:buffer)
|
||||||
let l:notified = ale#lsp#Send(l:id, l:save_message) != 0
|
let l:notified = ale#lsp#Send(l:id, l:save_message) != 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if l:notified
|
|
||||||
call ale#engine#MarkLinterActive(l:info, a:linter)
|
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#lsp_linter#CheckWithLSP(buffer, linter) abort
|
function! ale#lsp_linter#CheckWithLSP(buffer, linter) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user