Skip to content

Commit

Permalink
[dap] normalize paths in source field (#1351)
Browse files Browse the repository at this point in the history
Co-authored-by: loscher <loscher@fb.com>
  • Loading branch information
TheGeorge and TheGeorge authored Aug 1, 2022
1 parent a45c2e6 commit 5a4e62f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/els_dap/src/els_dap_general_provider.erl
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,10 @@ break_line(Pid, Node) ->

-spec source(atom(), atom()) -> binary().
source(Module, Node) ->
Source = els_dap_rpc:file(Node, Module),
Source0 = els_dap_rpc:file(Node, Module),
Source1 = filename:absname(Source0),
els_dap_rpc:clear(Node),
unicode:characters_to_binary(Source).
unicode:characters_to_binary(Source1).

-spec to_pid(pos_integer(), #{thread_id() => thread()}) -> pid().
to_pid(ThreadId, Threads) ->
Expand Down

0 comments on commit 5a4e62f

Please sign in to comment.