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

Use local ref. targets for each.* references #162

Merged
merged 1 commit into from
Nov 23, 2022
Merged

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Nov 22, 2022

This PR changes collection of reference targets, such that we now collect each.key and each.value as targets to the for_each attribute. This in turn enables go-to-definition and go-to-references between for_each and the two references.

Additionally, it updates completion, hover and semantic tokens, to make use of these reference targets and just treat them like any other valid reference.


UX in Terraform

Completion (same as before)

Screenshot 2022-11-22 at 13 34 48
Screenshot 2022-11-22 at 13 35 05

Hover (same as before)

Screenshot 2022-11-22 at 13 37 35
Screenshot 2022-11-22 at 13 37 12

Go-to-* (new)

2022-11-22 13 38 37

@radeksimko radeksimko added the enhancement New feature or request label Nov 22, 2022
@radeksimko radeksimko requested a review from a team November 22, 2022 12:36
@radeksimko radeksimko marked this pull request as ready for review November 22, 2022 13:39
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants