diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/lsp/response.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim index 69e88d56..08b36808 100644 --- a/autoload/ale/lsp/response.vim +++ b/autoload/ale/lsp/response.vim @@ -66,6 +66,10 @@ function! ale#lsp#response#ReadDiagnostics(response) abort let l:loclist_item.detail = l:diagnostic.message . "\n" . join(l:related, "\n") endif + if has_key(l:diagnostic, 'source') + let l:loclist_item.detail = printf('[%s] %s', l:diagnostic.source, l:diagnostic.message) + endif + call add(l:loclist, l:loclist_item) endfor |