Skip to content

Commit

Permalink
Make LSPDocumentDiagnostic close location list of no error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman authored Mar 18, 2024
1 parent f7ccf00 commit 9b9b9b5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ function! lsp#internal#diagnostics#document_diagnostics_command#do(options) abor

if empty(l:result)
call lsp#utils#error('No diagnostics results')
return
else
call setloclist(0, l:result)
echo 'Retrieved diagnostics results'
botright lopen
endif
call setloclist(0, l:result)
botright lwindow
endfunction

0 comments on commit 9b9b9b5

Please sign in to comment.