mirror of https://github.com/dense-analysis/ale
racket/raco: add filename to loc list (#3777)
This allows the location list from one buffer to point to an issue in another; previously, the error message would be shown but with no way to jump to it.
This commit is contained in:
parent
12d8803015
commit
d6302d1858
|
@ -14,6 +14,7 @@ function! ale_linters#racket#raco#Handle(buffer, lines) abort
|
|||
|
||||
for l:match in ale#util#GetMatches(a:lines, l:pattern)
|
||||
call add(l:output, {
|
||||
\ 'filename': l:match[2],
|
||||
\ 'lnum': l:match[3] + 0,
|
||||
\ 'col': l:match[4] + 0,
|
||||
\ 'type': 'E',
|
||||
|
|
|
@ -8,6 +8,7 @@ Execute(The raco handler should handle errors for the current file correctly):
|
|||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'filename': 'foo.rkt',
|
||||
\ 'lnum': 4,
|
||||
\ 'col': 1,
|
||||
\ 'type': 'E',
|
||||
|
|
Loading…
Reference in New Issue