Support conditional expressions (condition ? true : false
)
#528
Labels
enhancement
New feature or request
textDocument/completion
textDocument/definition
textDocument/references
textDocument/semanticTokens
Semantic syntax highlighting
Background
Terraform supports conditional expressions. For example:
The language server currently doesn't support these, which means that completion is not provided:
!=
), nor?
), nor:
)It also means that we don't report valid expressions (such as traversals) anywhere within the conditional.
Proposal
Completion
TODO
Hover
Support the expression so that value can be interpolated as part of #495 and hover works for the expressions within a conditional. i.e. for
var.a
or"default-a
in the following exampleSemantic Tokens
TODO
The text was updated successfully, but these errors were encountered: