summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-01-19 16:50:04 +0000
committerw0rp <devw0rp@gmail.com>2018-01-19 16:50:04 +0000
commita5ec4143d2ed0527649d4143e244b62b9f879661 (patch)
treeccb5afba9cb07e95e040f01f600b0b74ff59ab24 /autoload
parent042dec059a3da01477cbc76e9893973dd374872d (diff)
downloadale-a5ec4143d2ed0527649d4143e244b62b9f879661.zip
Fix the didSave tests so they work in NeoVim 0.1.7, and do not send the message for tsserver
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index c415e7cb..8c3d4c73 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -704,8 +704,8 @@ function! s:CheckWithLSP(buffer, linter) abort
let l:request_id = ale#lsp#Send(l:id, l:change_message, l:root)
" If this was a file save event, also notify the server of that.
- let l:is_save = getbufvar(a:buffer, 'ale_save_event_fired', 0)
- if l:is_save != 0
+ if a:linter.lsp isnot# 'tsserver'
+ \&& getbufvar(a:buffer, 'ale_save_event_fired', 0)
let l:save_message = ale#lsp#message#DidSave(a:buffer)
let l:request_id = ale#lsp#Send(l:id, l:save_message, l:root)
endif