mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
Fix check for did_save and includeText capabilities (#4008)
This commit is contained in:
parent
9860dadbc9
commit
9a01836015
@ -466,8 +466,8 @@ function! s:CheckWithLSP(linter, details) abort
|
||||
" If this was a file save event, also notify the server of that.
|
||||
if a:linter.lsp isnot# 'tsserver'
|
||||
\&& getbufvar(l:buffer, 'ale_save_event_fired', 0)
|
||||
\&& ale#lsp#HasCapability(l:buffer, 'did_save')
|
||||
let l:include_text = ale#lsp#HasCapability(l:buffer, 'includeText')
|
||||
\&& ale#lsp#HasCapability(l:id, 'did_save')
|
||||
let l:include_text = ale#lsp#HasCapability(l:id, 'includeText')
|
||||
let l:save_message = ale#lsp#message#DidSave(l:buffer, l:include_text)
|
||||
let l:notified = ale#lsp#Send(l:id, l:save_message) != 0
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user