You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The locals block is somewhat unique compared to the rest of the language in that it has cty.DynamicPseudoType constraint, i.e. any type and allows interpolation.
We currently provide very basic completion inside of locals right after the = which brings up all functions and references.
We do not provide completion in many other contexts which may be relevant
boolean (true / false)
maps (+ inside keys and values)
objects (+ inside attribute names and values)
tuples (+ elements)
lists (+ elements)
sets (+ elements)
Proposal
Enable completion for boolean, i.e. true and false
Background
The
locals
block is somewhat unique compared to the rest of the language in that it hascty.DynamicPseudoType
constraint, i.e. any type and allows interpolation.We currently provide very basic completion inside of
locals
right after the=
which brings up all functions and references.We do not provide completion in many other contexts which may be relevant
true
/false
)Proposal
true
andfalse
{ ... }
{ (HERE) = "foo" }
{ foo = HERE }
tomap({ ... })
{ (HERE) = "foo" }
{ foo = HERE }
[ ... ]
[ HERE, HERE, ... ]
toset([ ... ])
toset([ HERE, HERE, ... ])
tolist([ ... ])
tolist([ HERE, HERE, ... ])
Implementation Notes
This can be more broadly described as completion inside of an attribute with the following constraint:
i.e. this is relevant for any other language and other parts of the Terraform language which may satisfy the above, not just
locals
.The text was updated successfully, but these errors were encountered: