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

Improve traversal completion for lists, tuples, and sets #344

Merged
merged 4 commits into from Nov 14, 2023

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Nov 13, 2023

This PR improves the partial traversal completion within lists, tuples, and sets by recovering the trailing dot.

Since I recently worked on this for template expressions, I thought I could fix it for lists, tuples, and sets as well.

UX Before

2023-11-13 12 10 12

UX After

2023-11-13 12 10 37

Closes hashicorp/vscode-terraform#1624

@dbanck dbanck added the bug Something isn't working label Nov 13, 2023
@dbanck dbanck self-assigned this Nov 13, 2023
@dbanck dbanck requested a review from a team as a code owner November 13, 2023 11:52
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

LGTM, small nitpick: I'd replace the OneOf with the actual type in tests since it should have no impact on what's being tested.

Also if we can either address or ticket out the other types like tuple, object and map (or confirm they're not impacted) that would be great.

@dbanck dbanck changed the title Improve traversal completion for lists and sets Improve traversal completion for lists, tuples, and sets Nov 14, 2023
@dbanck
Copy link
Member Author

dbanck commented Nov 14, 2023

I fixed the issues for tuples and found out that maps and objects are also affected. But we already track these in #280

@dbanck dbanck merged commit 0c7d286 into main Nov 14, 2023
5 checks passed
@dbanck dbanck deleted the b-fix-list-set-trailing-dot branch November 14, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Completions for variables include the var. (unless you don't type the dot)
2 participants