diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-12-09 23:22:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 23:22:07 +0900 |
commit | 9a01836015f2bd1ace3918eb23a5b4f16910d722 (patch) | |
tree | 5c5a1a7f458d6aace62aad82d7ca1f714fd03ed1 | |
parent | 9860dadbc952b227b2d25269e717ae801c5d6f2c (diff) | |
download | ale-9a01836015f2bd1ace3918eb23a5b4f16910d722.zip |
Fix check for did_save and includeText capabilities (#4008)
-rw-r--r-- | autoload/ale/lsp_linter.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/lsp_linter.vim b/autoload/ale/lsp_linter.vim index 230b3141..dc41cd5c 100644 --- a/autoload/ale/lsp_linter.vim +++ b/autoload/ale/lsp_linter.vim @@ -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 |