mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-17 16:45:11 +08:00
Correct related information line numbers from 0-based to 1-based
This commit is contained in:
@@ -59,10 +59,11 @@ function! ale#lsp#response#ReadDiagnostics(response) abort
|
||||
let l:related = deepcopy(l:diagnostic.relatedInformation)
|
||||
call map(l:related, {key, val ->
|
||||
\ ale#path#FromURI(val.location.uri) .
|
||||
\ ':' . val.location.range.start.line . ':' . val.location.range.start.character .
|
||||
\ ':' . (val.location.range.start.line + 1) .
|
||||
\ ':' . (val.location.range.start.character + 1) .
|
||||
\ ":\n\t" . val.message
|
||||
\ })
|
||||
let l:loclist_item.detail = l:diagnostic.message . "\n" . join(l:related, "\n") . "\n"
|
||||
let l:loclist_item.detail = l:diagnostic.message . "\n" . join(l:related, "\n")
|
||||
endif
|
||||
|
||||
call add(l:loclist, l:loclist_item)
|
||||
|
||||
Reference in New Issue
Block a user