Skip to content

Commit

Permalink
do not suggest capitalized map/struct fields
Browse files Browse the repository at this point in the history
the resulting code does not compile
  • Loading branch information
lukaszsamson committed Nov 11, 2023
1 parent c02f5ac commit ed74f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/elixir_sense/providers/suggestion/complete.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ defmodule ElixirSense.Providers.Suggestion.Complete do

for {key, value} when is_atom(key) <- fields,
key_str = Atom.to_string(key),
not Regex.match?(~r/^[A-Z]/u, key_str),
Matcher.match?(key_str, hint) do
value_is_map =
case value do
Expand Down

0 comments on commit ed74f77

Please sign in to comment.