Skip to content

Commit

Permalink
fix(completions): log warning when completion request fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Oct 19, 2023
1 parent d39ea23 commit 0b7bd14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,12 @@ defmodule NextLS do

{:reply, results, lsp}
rescue
_ ->
e ->
GenLSP.warning(
lsp,
"[NextLS] Failed to run completion request: #{Exception.format_banner(:error, e, __STACKTRACE__)}"
)

{:reply, [], lsp}
end

Expand Down

0 comments on commit 0b7bd14

Please sign in to comment.