Support for dynamic
block
#530
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Milestone
Use-cases
Terraform supports a
dynamic
"meta" block withinresource
data
,provider
andprovisioner
blocks, for example:Language server currently does not support this block, which in practice means that e.g.
dynamic
doesn't come up as candidate when completingresource
data
,provider
orprovisioner
bodydynamic
blockdynamic
block or any block/attribute/value within itdynamic
block itself or anything within itExpected UX
Completion
Screen.Recording.2022-06-01.at.10.59.59.mov
Hover
Screen.Recording.2022-06-01.at.10.57.39.mov
Semantic Tokens
TODO
Proposal
hashicorp/hcl-lang
BodyExtensions{DynamicBlocks bool}
intoschema.BodySchema
DynamicBlocks
indecoder.PathDecoder.CandidatesAtPos()
DynamicBlocks
indecoder.PathDecoder.HoverAtPos()
DynamicBlocks
indecoder.PathDecoder.SemanticTokensInFile()
DynamicBlocks
indecoder.Decoder.Symbols()
hashicorp/terraform-schema
BodyExtensions{DynamicBlocks: true}
dynamically toresource
,data
,provider
andprovisioner
block bodies where the body has any blockshashicorp/terraform-ls
terraform-schema
&hcl-lang
The text was updated successfully, but these errors were encountered: