Support count.index
references in blocks w/ count
#860
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Milestone
Notes
#583 is not a dependency, but
count.index
is quite frequently used as string in various names/tags and so is important in the context of this issue.Background
Terraform supports
count.index
reference withinresource
,data
andmodule
block and anywhere wherecount
meta-argument is supported, for examplehttps://www.terraform.io/language/expressions/references#block-local-values
https://www.terraform.io/language/meta-arguments/count
We don't provide any kind of support for this type of reference and if we were to do any kind of thorough validation of them we'd probably flag them as invalid today.
Expected UX
Completion
Hover
Semantic Highlighting
Proposal
hashicorp/hcl-lang
BodyExtensions{Count bool}
intoschema.BodySchema
Count
indecoder.PathDecoder.CandidatesAtPos()
Count
indecoder.PathDecoder.HoverAtPos()
Count
indecoder.PathDecoder.SemanticTokensInFile()
hashicorp/terraform-schema
count
attribute withBodyExtensions{Count: true}
inresource
,data
andmodule
block bodieshashicorp/terraform-ls
terraform-schema
&hcl-lang
The text was updated successfully, but these errors were encountered: