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
While implementing support for operators in #320 a few edge cases concerning completion near an unterminated function call were discovered.
attr = !lower(
attr = 42 + sum(
attr = lower(
In these cases we do not provide relevant completion because we do not consider the completion "trigger position" to be inside of the attribute or any expression.
At least in two of the 3 examples above though the upstream HCL parser will still provide helpful relevant AST, as shown below in Implementation Notes.
Similar to #321 the root cause is most likely here
Context
While implementing support for operators in #320 a few edge cases concerning completion near an unterminated function call were discovered.
attr = !lower(
attr = 42 + sum(
attr = lower(
In these cases we do not provide relevant completion because we do not consider the completion "trigger position" to be inside of the attribute or any expression.
At least in two of the 3 examples above though the upstream HCL parser will still provide helpful relevant AST, as shown below in Implementation Notes.
Similar to #321 the root cause is most likely here
hcl-lang/decoder/candidates.go
Lines 175 to 187 in 436a15d
Implementation Notes
the incomplete expressions have
End
positions zero-ed out, which is the main reason we are unable to provide completion at the moment.The text was updated successfully, but these errors were encountered: