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
Similar to some earlier issues, we ran into an edge case while implementing support for operators and parenthesis (ParenthesesExpr) in the Terraform language server.
So while we can tell we are inside of an attribute and that the expression is part of the attribute - i.e. within its range, it remains awkward/difficult to figure out whether we are inside of the expression.
As with other reports related to recovery from incomplete configuration, the context is - again - enabling completion. Users would reasonably expect to be offered relevant completion in the above context, because it is exactly the nature of completion to complete the incomplete configuration.
Proposal
Report/parse the above incomplete expression with the following range:
Context
Similar to some earlier issues, we ran into an edge case while implementing support for operators and parenthesis (
ParenthesesExpr
) in the Terraform language server.attr = (
This is parsed as following:
So while we can tell we are inside of an attribute and that the expression is part of the attribute - i.e. within its range, it remains awkward/difficult to figure out whether we are inside of the expression.
As with other reports related to recovery from incomplete configuration, the context is - again - enabling completion. Users would reasonably expect to be offered relevant completion in the above context, because it is exactly the nature of completion to complete the incomplete configuration.
Proposal
Report/parse the above incomplete expression with the following range:
The text was updated successfully, but these errors were encountered: