Skip to content

Commit

Permalink
Fix a bug in perf error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Aug 22, 2024
1 parent 878313f commit e400638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageserverinstance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ mutable struct LanguageServerInstance
jw = JuliaWorkspace()
if hasfield(typeof(jw.runtime), :performance_tracing_callback)
jw.runtime.performance_tracing_callback = (name, start_time, duration) -> begin
if g_operationId[] != ""
if g_operationId[] != "" && isopen(endpoint)
JSONRPC.send(
endpoint,
telemetry_event_notification_type,
Expand Down

0 comments on commit e400638

Please sign in to comment.