#254 Add an option for logging the output of commands

This commit is contained in:
w0rp
2017-02-16 23:18:57 +00:00
parent 843370b96f
commit eac0a41ae1
7 changed files with 144 additions and 7 deletions

View File

@@ -214,6 +214,11 @@ function! s:HandleExit(job) abort
return
endif
" Log the output of the command for ALEInfo if we should.
if g:ale_history_enabled && g:ale_history_log_output
call ale#history#RememberOutput(l:buffer, l:job_id, l:output[:])
endif
let l:linter_loclist = ale#util#GetFunction(l:linter.callback)(l:buffer, l:output)
" Make some adjustments to the loclists to fix common problems.