Skip to content

Commit 6d9e8e6

Browse files
authored
Merge pull request #1214 from elixir-lsp/codex/refactor-snapshot-pid-lookup-and-add-test
Fix remote pid lookup with missing snapshot
2 parents 9288837 + 87b3585 commit 6d9e8e6

File tree

1 file changed

+8
-2
lines changed
  • apps/debug_adapter/lib/debug_adapter

1 file changed

+8
-2
lines changed

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,8 +2970,14 @@ defmodule ElixirLS.DebugAdapter.Server do
29702970
snapshot -> process_name_from_snapshot(snapshot)
29712971
end
29722972
else
2973-
nil -> nil
2974-
process_info -> process_name_from_info(process_info)
2973+
nil ->
2974+
case Map.get(snapshot_by_pid, pid) do
2975+
nil -> nil
2976+
snapshot -> process_name_from_snapshot(snapshot)
2977+
end
2978+
2979+
process_info ->
2980+
process_name_from_info(process_info)
29752981
end
29762982
end
29772983

0 commit comments

Comments
 (0)