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

Provide (less verbose) step-based completion #566

Merged
merged 1 commit into from
Jun 25, 2021

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jun 22, 2021

Fixes #492

Step-based completion basically offers only the top-most reference (from hierarchy perspective) that matches what is already written (any characters after =). In other words completion for empty expression such as attribute = # HERE would bring up only top-level references.

Additionally this patch also provides decoding for references to addressable elements within some non-primitive types - namely attributes within object expressions, map entries, and list entries.

Depends on hashicorp/hcl-lang#56

Before

2021-06-23 18 02 58

2021-06-23 18 09 59

After

2021-06-25 13 19 36

2021-06-25 13 21 35

@radeksimko radeksimko marked this pull request as ready for review June 23, 2021 17:19
@radeksimko radeksimko force-pushed the f-step-based-completion branch 2 times, most recently from bef6163 to 52c9062 Compare June 25, 2021 11:11
@radeksimko radeksimko merged commit f6d834f into main Jun 25, 2021
@radeksimko radeksimko deleted the f-step-based-completion branch June 25, 2021 12:57
@radeksimko radeksimko added this to the v0.18.2 milestone Jul 6, 2021
@github-actions
Copy link

github-actions bot commented Aug 6, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support step-based reference completion
1 participant