Skip to content
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

Handle unique elements in Set expression #225

Open
dbanck opened this issue Mar 9, 2023 · 0 comments
Open

Handle unique elements in Set expression #225

dbanck opened this issue Mar 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dbanck
Copy link
Member

dbanck commented Mar 9, 2023

In #194 we introduced a new Set expression. Currently, we offer suggestions to complete the same element twice, even though elements should be unique.

Proposal

Update the completion function for set, to filter out already declared elements.

func (set Set) CompletionAtPos(ctx context.Context, pos hcl.Pos) []lang.Candidate
@dbanck dbanck added the enhancement New feature or request label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant