Skip to content

Commit 04b9b7e

Browse files
authored
fix: fallback when hovering of a non-function,module reference (#281)
This fixes the following exception that I started getting with VSCode 1.82.3: ``` ** (CaseClauseError) no case clause matching: "attribute" (next_ls 0.13.4) lib/next_ls.ex:337: NextLS.handle_request/2 (gen_lsp 0.6.0) lib/gen_lsp.ex:248: anonymous fn/5 in GenLSP.loop/3 (gen_lsp 0.6.0) lib/gen_lsp.ex:308: GenLSP.attempt/3 (stdlib 5.0.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3 ``` Fixes #280.
1 parent cc45979 commit 04b9b7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/next_ls.ex

+3
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ defmodule NextLS do
359359
_ ->
360360
nil
361361
end
362+
363+
nil ->
364+
nil
362365
end
363366
else
364367
_ -> nil

0 commit comments

Comments
 (0)