File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
apps/debug_adapter/lib/debug_adapter Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -888,12 +888,19 @@ defmodule ElixirLS.DebugAdapter.Server do
888
888
path = args [ "source" ] [ "path" ]
889
889
890
890
content =
891
- if path == "replinput" do
892
- # this is a special path that VSCode uses for debugger console
893
- # return an empty string as we do not need anything there
894
- ""
895
- else
896
- File . read! ( path )
891
+ cond do
892
+ path == "replinput" ->
893
+ # this is a special path that VSCode uses for debugger console
894
+ # return an empty string as we do not need anything there
895
+ ""
896
+
897
+ String . starts_with? ( path , "vs.editor.ICodeEditor:" ) ->
898
+ # some undocumented VSCode behavior related to Monaco editor
899
+ # vs.editor.ICodeEditor:1%3Abreakpointinput
900
+ ""
901
+
902
+ true ->
903
+ File . read! ( path )
897
904
end
898
905
899
906
{ % { "content" => content } , state }
You can’t perform that action at this time.
0 commit comments