Support more complex index expressions (elem[key]
)
#531
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Use-cases
Support for traversals was added in #485 - which introduced support for simple index expressions the element is a reference and key is static (either number or string), such as
aws_instance.example.tags["owner"]
oraws_alb.example.access_logs[0]
.Terraform however supports more complex index expressions too, where the key can a (non-static) expression, for example:
aws_instance.example.tags[var.tag_name]
Language server currently does not support such expressions, which in practice means that:
[
]
for variable indexRelated
#1283
Proposal
Completion
TODO
Hover
TODO
Semantic Tokens
TODO
The text was updated successfully, but these errors were encountered: