mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 01:53:30 +08:00
Better formatting
This commit is contained in:
@@ -58,11 +58,11 @@ function! ale#lsp#response#ReadDiagnostics(response) abort
|
||||
if has_key(l:diagnostic, 'relatedInformation')
|
||||
let l:related = deepcopy(l:diagnostic.relatedInformation)
|
||||
call map(l:related, {key, val ->
|
||||
\ ale#path#FromURI(val.location.uri)) .
|
||||
\ ale#path#FromURI(val.location.uri) .
|
||||
\ ':' . val.location.range.start.line . ':' . val.location.range.start.character .
|
||||
\ ': ' . val.message
|
||||
\ ":\n\t" . val.message
|
||||
\ })
|
||||
let l:loclist_item.detail = join(l:related, "\n") . "\n"
|
||||
let l:loclist_item.detail = l:diagnostic.message . "\n" . join(l:related, "\n") . "\n"
|
||||
endif
|
||||
|
||||
call add(l:loclist, l:loclist_item)
|
||||
|
||||
Reference in New Issue
Block a user