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 46a560d commit 4d9e023Copy full SHA for 4d9e023
apps/elixir_ls_utils/lib/completion_engine.ex
@@ -1186,7 +1186,17 @@ defmodule ElixirLS.Utils.CompletionEngine do
1186
1187
# assume function head is first in code and last in metadata
1188
head_params = Enum.at(info.params, -1)
1189
- args = head_params |> Enum.map(&Macro.to_string/1)
+
1190
+ args =
1191
+ head_params
1192
+ |> Enum.map(fn arg ->
1193
+ try do
1194
+ Macro.to_string(arg)
1195
+ rescue
1196
+ _ -> "term"
1197
+ end
1198
+ end)
1199
1200
default_args = Introspection.count_defaults(head_params)
1201
1202
# TODO this is useless - we duplicate and then deduplicate
0 commit comments