Provide tfvars
references for variable
blocks
#618
Labels
enhancement
New feature or request
textDocument/codeLens
textDocument/definition
textDocument/references
Current Version
Current State
Users currently benefit from being able to lookup references via a context menu by right-clicking to a
variable
block, e.g. finding all references (var.example
) forUsers can also see the total number of references within a module via code lens above the
variable
block in VS Code or other supported clients.Use-cases
Variables can be referenced in variable (
tfvars
) files and users would benefit from seeing variable references in these files as well, both when looking via the context menu and code lens.Additionally when requesting definition for a
tfvars
entry, the correspondingvariable
block is returned.Proposal
terraform-schema
schema.SchemaForVariables()
such that usesOriginForTarget
as introduced in Introduce LocalOrigin + PathOrigin & schema.PathTarget hcl-lang#94 and used already for module references in schema: Use OriginForTarget to connect module inputs w/ variables terraform-schema#82The text was updated successfully, but these errors were encountered: