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
Hello,
i'm having completions that do not display, and I've managed to track this to the should_complete function.
Here's what happens:
deftest():
if {cursor_position}
In this case, tree.root_node().descendant_for_point_range and tree.root_node() are equal, and a CompletionType::MultiLine is returned.
However, if I try to complete this:
forainrange(5):
{cursor_position}
ifa==2:
break
Then the tree.root_node().descendant_for_point_range evaluates to for_node, and CompletionType:SingLine is returned. Because most of my completions start with a \n, nothing is displayed (due to the way SingleLine completions are handled)
I'm having trouble understanding the logic behind the should_complete function, is there some documentation I could find on the expected output ?
Thanks a lot !
The text was updated successfully, but these errors were encountered:
Hello,
i'm having completions that do not display, and I've managed to track this to the should_complete function.
Here's what happens:
In this case,
tree.root_node().descendant_for_point_range
andtree.root_node()
are equal, and aCompletionType::MultiLine
is returned.However, if I try to complete this:
Then the tree.root_node().descendant_for_point_range evaluates to for_node, and
CompletionType:SingLine
is returned. Because most of my completions start with a \n, nothing is displayed (due to the way SingleLine completions are handled)I'm having trouble understanding the logic behind the should_complete function, is there some documentation I could find on the expected output ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: