-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate completion candidates for for_each
& for
collections
#170
Comments
This appears to be slightly more complicated than I originally expected. Basically, the problem is that we first gather constraints and then do completion for each constraint individually. Specifically for the mentioned example, the trigger is that Lines 258 to 263 in 9f07ba7
and these are compared against the reference target of (also open) type cty.Dynamic results in the two duplicate matches.
hcl-lang/decoder/expression_candidates.go Lines 19 to 41 in 9f07ba7
They both represent the same reference target (i.e. reference target collection works as expected), but first is a match against |
each.value
completion for dynamic
for_each
for_each
& for
collections
Currently we return two duplicate completion candidates when completing
for_each
under adynamic
block, in a block which also has the "standalone"for_each
:We should only provide one completion candidate.
The text was updated successfully, but these errors were encountered: