We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee25c8 commit 9542837Copy full SHA for 9542837
apps/language_server/lib/language_server/providers/completion.ex
@@ -1274,9 +1274,17 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
1274
end
1275
1276
defp item_to_json(item, idx, options) do
1277
+ kind =
1278
+ try do
1279
+ completion_kind(item.kind)
1280
+ rescue
1281
+ _ ->
1282
+ raise "unexpected kind #{inspect(item.kind)} in completion #{inspect(item)}"
1283
+ end
1284
+
1285
json = %{
1286
"label" => item.label,
- "kind" => completion_kind(item.kind),
1287
+ "kind" => kind,
1288
"detail" => item.detail,
1289
"documentation" => %{"value" => item.documentation || "", kind: "markdown"},
1290
"labelDetails" => item.label_details,
0 commit comments