Skip to content

Commit fa69c6c

Browse files
committed
according to LSP spec MarkupContent value should not be null
1 parent 07a7698 commit fa69c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/language_server/lib/language_server/providers/completion.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
633633
"label" => item.label,
634634
"kind" => completion_kind(item.kind),
635635
"detail" => item.detail,
636-
"documentation" => %{"value" => item.documentation, kind: "markdown"},
636+
"documentation" => %{"value" => item.documentation || "", kind: "markdown"},
637637
"filterText" => item.filter_text,
638638
"sortText" => String.pad_leading(to_string(idx), 8, "0"),
639639
"insertText" => item.insert_text,

0 commit comments

Comments
 (0)