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

Add support for traversals/references #485

Merged
merged 1 commit into from
May 18, 2021
Merged

Add support for traversals/references #485

merged 1 commit into from
May 18, 2021

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented May 5, 2021

Builds on hashicorp/hcl-lang#36
Builds on hashicorp/terraform-schema#41


Some known (most likely desirable) features were intentionally left out from the MVP, but are tracked individually and will be eventually implemented:

Generally if something related to reference completion/hover etc. seems missing from that list, or the implementation I would suggest opening a new issue (rather than commenting here on this PR).


Screenshots

Screenshot 2021-05-17 at 21 00 34
Screenshot 2021-05-17 at 21 00 46
Screenshot 2021-05-17 at 21 01 37
Screenshot 2021-05-17 at 21 01 56

@radeksimko radeksimko added the enhancement New feature or request label May 12, 2021
@radeksimko radeksimko force-pushed the f-traversal-expr branch 5 times, most recently from 8a7bb79 to 9372020 Compare May 12, 2021 11:26
}

// TODO: Omit item which uses kind unsupported by the client

var cmd *lsp.Command
if candidate.TriggerSuggest {
if candidate.TriggerSuggest && snippetSupport {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is probably something that should've been done some time ago. We do not include the = in the simplified TextEdits and so triggering suggest in that case is kind of pointless.

It is not a big deal for most clients today which probably do support snippets anyway, but it also helps reducing the amount of test data where in test we opt into snippet support only where we need it.

@radeksimko radeksimko requested a review from a team May 17, 2021 20:11
Copy link
Contributor

@aeschright aeschright left a comment

Choose a reason for hiding this comment

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

👍

@github-actions
Copy link

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 Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants