You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From 0.19 users are able to go to variable definition/declaration, which is always considered to be the variable block (where value can be specified as default).
In Terraform it is also possible to specify value of a variable via tfvars file and users would benefit from being able to find the value definition of a variable from its reference (e.g. var.foo).
Proposal
TODO
The text was updated successfully, but these errors were encountered:
After thinking through this and trying to map LSP's concepts somehow to HCL I believe we should represent tfvars entries as references, rather than definitions for variable blocks, which is already tracked under #618
The minor difference this will make is that users would pick a different item from the context menu
This also reflects the fact that VS Code implements UX aspect of go-to-definition as Ctrl/Cmd+click and making a variable block clickable would be slightly awkward.
The opposite should work though - i.e. tfvars entry would be considered a reference to the variable block, and so Ctrl/Cmd+click-ing on a tfvars entry will take you to the block (not the opposite, which is what this issue was proposing). Relatedly Go to Definition from tfvars would take you to the relevant variable block.
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Use-cases
From 0.19 users are able to go to variable definition/declaration, which is always considered to be the
variable
block (where value can be specified asdefault
).In Terraform it is also possible to specify value of a variable via tfvars file and users would benefit from being able to find the value definition of a variable from its reference (e.g.
var.foo
).Proposal
TODO
The text was updated successfully, but these errors were encountered: