summaryrefslogtreecommitdiff
path: root/test/test_rename.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-06 00:17:27 +0100
committerw0rp <devw0rp@gmail.com>2023-09-06 00:17:27 +0100
commit551fbcfb0905629dcc2afc0db53dcca21994cca3 (patch)
tree6e29d601783f19aba69a153c75e6c9d1f1a3236e /test/test_rename.vader
parent8ba7ae818c33c3b9ed9627ae9661f0420d256d7c (diff)
downloadale-551fbcfb0905629dcc2afc0db53dcca21994cca3.zip
Add an option to save hidden buffers
When commands are run, it can be useful to just save the hidden buffers so language servers immediately get updated with changes to files without you having to manually save each file. You can now enable this by setting `g:ale_save_hidden` to `1`.
Diffstat (limited to 'test/test_rename.vader')
-rw-r--r--test/test_rename.vader2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_rename.vader b/test/test_rename.vader
index 83f0aa7e..d58d1827 100644
--- a/test/test_rename.vader
+++ b/test/test_rename.vader
@@ -59,7 +59,7 @@ Before:
function! ale#code_action#HandleCodeAction(code_action, options) abort
let g:handle_code_action_called = 1
- AssertEqual !&hidden, get(a:options, 'should_save', 0)
+ AssertEqual g:ale_save_hidden || !&hidden, get(a:options, 'should_save', 0)
call add(g:code_actions, a:code_action)
endfunction