Skip to content

Commit

Permalink
correctly match on types with args
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Oct 31, 2023
1 parent 861f7d4 commit 78a710e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elixir_sense/core/type_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,13 @@ defmodule ElixirSense.Core.TypeInfo do
defp extract_type_def_info(
_mod,
{:remote_type, _, [{:atom, _, remote_mod}, {:atom, _, name}, args]}
) do
)
when is_list(args) do
remote_mod = if remote_mod == :elixir, do: nil, else: remote_mod
{remote_mod, name, length(args)}
end

defp extract_type_def_info(mod, {_, _, type_name, args}) do
defp extract_type_def_info(mod, {_, _, type_name, args}) when is_list(args) do
{mod, type_name, length(args)}
end

Expand Down

0 comments on commit 78a710e

Please sign in to comment.