Skip to content

Commit

Permalink
send telemetry on build process crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 6, 2023
1 parent b519601 commit 83750ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/language_server/lib/language_server/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ defmodule ElixirLS.LanguageServer.Server do
state

_ ->
message = Exception.format_exit(reason)

JsonRpc.telemetry(
"build_error",
%{"elixir_ls.build_error" => message},
%{}
)

path = Path.join(state.project_dir, MixfileHelpers.mix_exs())
handle_build_result(:error, [Diagnostics.exception_to_diagnostic(reason, path)], state)
end
Expand Down

0 comments on commit 83750ef

Please sign in to comment.