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

Enable dynamic label completions #154

Merged
merged 7 commits into from
Nov 24, 2022
Merged

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Nov 11, 2022

This PR enables the next stage for dynamic block completion. Based on the blocks of a dependent body, we can now complete the label for dynamic blocks based on the available block names and the block-related attributes in the content block. It works for nested blocks, too.


UX in Terraform

Completion

2022-11-23 12 00 15

Hover

CleanShot 2022-11-23 at 11 58 08

In nested blocks
CleanShot 2022-11-23 at 11 57 56

Semantic tokens

CleanShot 2022-11-23 at 12 02 40

@jpogran jpogran self-assigned this Nov 11, 2022
@jpogran jpogran changed the title dynamic label completions Enable dynamic label completions Nov 11, 2022
@jpogran jpogran force-pushed the dynamic_label_completions branch 4 times, most recently from a8de26d to b8f6175 Compare November 16, 2022 13:24
@dbanck dbanck self-assigned this Nov 23, 2022
@dbanck dbanck added the enhancement New feature or request label Nov 23, 2022
@dbanck dbanck marked this pull request as ready for review November 23, 2022 11:11
@dbanck dbanck requested a review from a team November 23, 2022 11:11
Arguably the function now does more than merging, so it should probably be called something like "resolveBlockBodySchema", but I'm leaving that for another PR/iteration.
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.

3 participants