Better formatting
This commit is contained in:
parent
484a70f0c0
commit
c467db3ed9
@ -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)
|
||||
|
@ -165,7 +165,7 @@ Execute(ale#lsp#response#ReadDiagnostics() should use relatedInformation for det
|
||||
\ {
|
||||
\ 'range': Range(0, 2, 0, 2),
|
||||
\ 'message': 'Something went wrong!',
|
||||
\ 'detail': 'file:///tmp/someotherfile.txt:42:79: might be this'
|
||||
\ 'detail': "Something went wrong!\n/tmp/someotherfile.txt:42:79:\n\tmight be this"
|
||||
\ }
|
||||
\ ]}})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user