-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocompletion for sandy stopped to work after complex expression in parentesis #4
Comments
I've added couple of unit tests to CompletionTest.kt:
now second test fails |
Thank you for reporting this. The auto-completion code is a bit tricky, and more tests to cover it will definitely help |
Is there any chance to have it fixed? |
Yes, I plan to do this in the following weeks. I could accept a PR sooner |
Have you finished with the fix? |
No, I was hoping to get a PR, then I was kept busy by other open-source projects |
I have added the two tests you suggested in a separate branch. The first one seems to pass now, while the second one fails. |
Now it should work. It took a while because I aimed to a significant refactoring, creating a separate library for autocompletion which is integrated into kanvas but can be used also separately. |
Thanks a lot! |
Thanks to you for reporting the issue and for your patience. I will be more reactive in the future! |
Expression
var a=(1
has suggestions
),*,+,-,/
but expression
var a=(1+1
should have same suggestions instead if has only
*,+,-,/
(without closing parenthesis)
I think it's related to handling of StarLoopbackState somehow.
The text was updated successfully, but these errors were encountered: