mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-18 18:25:57 +08:00
Fix #635 - Cancel previous jobs for fixing files when fixing files again
This commit is contained in:
@@ -344,6 +344,11 @@ function! ale#fix#Fix(...) abort
|
||||
|
||||
let l:buffer = bufnr('')
|
||||
|
||||
for l:job_id in keys(s:job_info_map)
|
||||
call remove(s:job_info_map, l:job_id)
|
||||
call ale#job#Stop(l:job_id)
|
||||
endfor
|
||||
|
||||
" Clean up any files we might have left behind from a previous run.
|
||||
call ale#fix#RemoveManagedFiles(l:buffer)
|
||||
call ale#fix#InitBufferData(l:buffer, l:fixing_flag)
|
||||
|
||||
Reference in New Issue
Block a user