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
In all of the above cases we're unable to provide any completion primarily because the upstream HCL parser is thrown off by the invalid stuff so much that it does not return the attribute at all, let alone partial expression.
Proposal
Investigate either changes upstream in HCL or some form of recovery downstream here in hcl-lang that would enable completion in the above contexts.
Background
While implementing support for
ConditionalExpr
in #326 a few edge cases surfaced around completion:ConditionalExpr
attr = /*HERE*/ ? var.foo : var.bar
attr = var.foo ? /*HERE*/ : var.bar
attr = var.foo ? var.bar : /*HERE*/
attr = var.foo ? /*HERE*/
Traversal
(with trailing dot) inside otherwise completeConditionalExpr
attr = var. ? var.foo : var.bar
attr = var.foo ? var. : var.bar
attr = var.foo ? var.bar : var.
In all of the above cases we're unable to provide any completion primarily because the upstream HCL parser is thrown off by the invalid stuff so much that it does not return the attribute at all, let alone partial expression.
Proposal
Investigate either changes upstream in HCL or some form of recovery downstream here in
hcl-lang
that would enable completion in the above contexts.Upstream Issue
hashicorp/hcl#643
The text was updated successfully, but these errors were encountered: