Skip to content
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

Completion: better update #13700

Merged
merged 7 commits into from May 11, 2023

Conversation

privat
Copy link
Contributor

@privat privat commented May 11, 2023

The completion menu was updated on every key down (even unrelated, like a lone control key down) but the menuMorph was not refreshed (because refreshing cause the selection to be reset).
This caused graphical glitches when the menu content did not fit the initial completion menu area.

This PR store the current completion token into the completion context, so it becomes easy to see if the completion need an update and the menu need a refresh.

This should remove the last GUI issue with the completion menu (no issue number but I wanted to fix it anyway)
Feel free to open new ones :)

@jecisc
Copy link
Member

jecisc commented May 11, 2023

Nice! I got this glitch today but I didn’t know how to reproduce it.

…ot use wordAtCaret but use the correct completion token
@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label May 11, 2023
@MarcusDenker
Copy link
Member

tests failing in CoASTResultSetBuilderTest

@privat
Copy link
Contributor Author

privat commented May 11, 2023

yeah. HeuristicCompletion is complex (and fragile), and the tests set up and use objects a little differently :(
What is strange is that windows did not fail the same tests.

@jecisc
Copy link
Member

jecisc commented May 11, 2023

Windows is broken but tells us tests are fine.. (but they are not run)

image

@privat privat added Status: Tests passed please review! and removed Status: Need more work The issue is nearly ready. Waiting some last bits. labels May 11, 2023
@MarcusDenker MarcusDenker merged commit 4ef1e9a into pharo-project:Pharo12 May 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants