File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/debug_adapter/lib/debug_adapter Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ defmodule ElixirLS.DebugAdapter.Protocol.Basic do
58
58
send_telemetry ,
59
59
show_user
60
60
) do
61
+ message_value = Macro . expand_once ( message , __CALLER__ )
62
+ error_id =
63
+ case message_value do
64
+ value when is_binary ( value ) -> ErrorDictionary . code ( value )
65
+ _ -> quote ( do: ErrorDictionary . code ( unquote ( message ) ) )
66
+ end
67
+
61
68
quote do
62
69
% {
63
70
"type" => "response" ,
@@ -68,7 +75,7 @@ defmodule ElixirLS.DebugAdapter.Protocol.Basic do
68
75
"message" => unquote ( message ) ,
69
76
"body" => % {
70
77
"error" => % {
71
- "id" => ElixirLS.DebugAdapter.ErrorDictionary . code ( unquote ( message ) ) ,
78
+ "id" => unquote ( error_id ) ,
72
79
"format" => unquote ( format ) ,
73
80
"variables" => unquote ( variables ) ,
74
81
"showUser" => unquote ( show_user ) ,
You can’t perform that action at this time.
0 commit comments