Support relative references / traversals #532
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Milestone
Background
Support for scoped/absolute traversals, where the collection being indexed is a static traversal was added in #485 - this brought support e.g. for
aws_instance.example.tags["owner"]
oraws_alb.example.access_logs[0]
.However Terraform also supports relative traversals, where the collection being accessed is essentially an expression of itself - e.g. a list or a function call
["first", "second"][0]
bar(1, a)[0]
bar(1, a)["key"]
Language server currently does not support such expressions, which in practice means that e.g.
[ HERE ][0]
norbar( HERE )[0]
nor["first", "second"][ HERE ]
Proposal
Completion
TODO
Hover
TODO
Semantic Tokens
TODO
The text was updated successfully, but these errors were encountered: