-
Notifications
You must be signed in to change notification settings - Fork 22
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 the Variable struct #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start! 👍🏻
Aside from my in-line comment - I think that we can also leverage the new struct in the earlydecoder
and add a test for the collection of variables there?
https://github.com/hashicorp/terraform-schema/blob/main/earlydecoder/decoder.go
Then you could raise a separate PR to terraform-ls
which implements steps 3 and 4 of hashicorp/terraform-ls#50
and then finally carry on with the rest of hashicorp/terraform-ls#537
49b7c13
to
b43d158
Compare
I'm going to have #48 reviewed first and then once merged I'd like to revisit this PR, rebase it and see if we can introduce the |
Adding a struct to represent the variable block in the terraform files This will help in storing this values while parsing tf files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, aside from my in-line comments (most of which are nitpicks) 😉
Adding a struct to represent the variable block in the terraform files
This will help in storing this values while parsing tf files.