mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-26 05:51:08 +08:00
#2132 - Implement deferred command handling for linters
This commit is contained in:
@@ -320,6 +320,10 @@ function! ale#command#Run(buffer, command, Callback, ...) abort
|
||||
call ale#history#Add(a:buffer, l:status, l:job_id, l:command)
|
||||
endif
|
||||
|
||||
if !l:job_id
|
||||
return 0
|
||||
endif
|
||||
|
||||
" We'll return this Dictionary. A `result_callback` can be assigned to it
|
||||
" later for capturing the result of a:Callback.
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user