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
When completions are triggered on, for example, an empty line, the current point isn't inside a syntax node. Or, rather, it's only inside the enclosing 'Program' node, which is sort of a degenerate case.
find_closest_node_to_point() will then latch on to a nearby node in some cases when it should not. (Which then interacts poorly with our completion logic, which is what #770 about.)
Above, I've triggered completions on an empty line, but according to the document context, the completion node is the closing paren ) of the line above.
We suspect this may be an edge case that hasn't been accounted for, i.e. that the current behaviour is unintentional. I'm going to see if we can change/fix this without breaking other things.
The text was updated successfully, but these errors were encountered:
We're teasing this buglet out of #770
When completions are triggered on, for example, an empty line, the current point isn't inside a syntax node. Or, rather, it's only inside the enclosing 'Program' node, which is sort of a degenerate case.
find_closest_node_to_point()
will then latch on to a nearby node in some cases when it should not. (Which then interacts poorly with our completion logic, which is what #770 about.)Above, I've triggered completions on an empty line, but according to the document context, the completion node is the closing paren
)
of the line above.We suspect this may be an edge case that hasn't been accounted for, i.e. that the current behaviour is unintentional. I'm going to see if we can change/fix this without breaking other things.
The text was updated successfully, but these errors were encountered: