mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
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`.
This commit is contained in:
@@ -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')
|
||||
AssertEqual g:ale_save_hidden || !&hidden, get(a:options, 'should_save')
|
||||
call add(g:code_actions, a:code_action)
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user