Skip to content

Commit 390fa8e

Browse files
committed
handle timed out responses with stacktrace
1 parent d5248ef commit 390fa8e

File tree

1 file changed

+6
-0
lines changed
  • apps/debug_adapter/lib/debug_adapter

1 file changed

+6
-0
lines changed

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,12 @@ defmodule ElixirLS.DebugAdapter.Server do
642642
{:noreply, state}
643643
end
644644

645+
def handle_info({:ok, [%Frame{} | _]}, state = %__MODULE__{}) do
646+
# timed out response from Stacktrace.get/1
647+
# we already emitted a warning
648+
{:noreply, state}
649+
end
650+
645651
# If we get the disconnect request from the client, we continue with :disconnect so the server will
646652
# die right after responding to the request
647653
@impl GenServer

0 commit comments

Comments
 (0)