File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/language_server/lib/language_server/providers/code_action Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ defmodule ElixirLS.LanguageServer.Providers.CodeAction.Helpers do
54
54
# https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#diagnostic
55
55
# message can be string or MarkupContent
56
56
# string
57
- def diagnostic_to_message ( diagnostic ) when is_binary ( diagnostic ) , do: diagnostic
57
+ def diagnostic_to_message ( % { "message" => message } ) when is_binary ( message ) , do: message
58
58
59
59
# MarkupContent
60
- def diagnostic_to_message ( % { "kind" => kind , "value" => value } )
60
+ def diagnostic_to_message ( % { "message" => % { " kind" => kind , "value" => value } } )
61
61
when kind in [ "plaintext" , "markdown" ] ,
62
62
do: value
63
63
end
You can’t perform that action at this time.
0 commit comments