Skip to content

Commit

Permalink
Ignore unknown reference types
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fhunleth committed Oct 8, 2023
1 parent cc45979 commit 7311333
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ defmodule NextLS do
_ ->
nil
end

nil ->
nil
end
else
_ -> nil
Expand Down

0 comments on commit 7311333

Please sign in to comment.