Return an ExprSyntaxError for invalid references that end in a dot (commonly occurs in editors for completions).
Detect value expressions of the ExprSyntaxError type when parsing object constructor expressions and use them to add an item to the result even though we skip parsing the object due to recovery after the invalid expression.
This allows the Terraform language server to support completions for object attributes after a dot was typed.
Return an
ExprSyntaxError
for invalid references that end in a dot (commonly occurs in editors for completions).Detect value expressions of the
ExprSyntaxError
type when parsing object constructor expressions and use them to add an item to the result even though we skip parsing the object due to recovery after the invalid expression.This allows the Terraform language server to support completions for object attributes after a dot was typed.