Skip to content

Commit

Permalink
handle keyword in other providers
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jul 16, 2023
1 parent 07f0cd8 commit b651396
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/elixir_sense/providers/definition.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ defmodule ElixirSense.Providers.Definition do
nil ->
nil

{:keyword, _} ->
nil

{:variable, variable} ->
var_info =
vars
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir_sense/providers/implementation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule ElixirSense.Providers.Implementation do
nil ->
[]

{kind, _} when kind in [:attribute] ->
{kind, _} when kind in [:attribute, :keyword] ->
[]

{module_type, function} ->
Expand Down
3 changes: 3 additions & 0 deletions lib/elixir_sense/providers/references.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ defmodule ElixirSense.Providers.References do
nil ->
[]

{:keyword, _} ->
[]

{:variable, variable} ->
var_info =
Enum.find(vars, fn %VarInfo{name: name, positions: positions} ->
Expand Down

0 comments on commit b651396

Please sign in to comment.