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

Fix 13825. Create a new sorter for the completion engine . #17473

Open
wants to merge 4 commits into
base: Pharo13
Choose a base branch
from

Conversation

omarabedelkader
Copy link

In order to fix the issue , we first implement the Sorter logic already existant (Alpahbetic and ReverseAlphabetic ) and we did also implement a new Sorter logic based on the size of the completion token.

with @ValentinBourcier @olekscode

Copy link

welcome bot commented Nov 29, 2024

Thanks for opening this pull request! Now continious integration (CI) will build Pharo with your change and run all tests. This might fail due to many reasons! Please check if your PR breaks the build or makes tests fail. Feel free to add comments to the PR. After this, before your PR can be merged it needs one or more reviews. Do not hesitate to ask people (on the Mailinglist or Discord) to help! When the CI shows no problems and there are positive reviews, your PR will be merged.

@ValentinBourcier
Copy link
Contributor

ValentinBourcier commented Nov 29, 2024

Before merging this pull-request, please note that it does not changes the default strategy selected in the Pharo settings.
To sort the completion results based on the size of the entries please activate the SizeSorter strategy in the Pharo settings menu > Code Browsing > Code Completion > Sorter.

Edit: @omarabedelkader changed the default sorter to be the SizeSorter

@@ -0,0 +1,20 @@
"
I'm a class that do nothing in the suggestion list.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that does nothing

"
I'm a class that do nothing in the suggestion list.
I return the list created from the compltion engine.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

completion engine

{ #category : 'accessing' }
CoCompletionEngineTest >> tearDown [
super tearDown.
CompletionContext sorterClass: oldSort.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please tab!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's already tabed in my image ... , i don't know why it's like this here.
Uploading Capture d’écran 2024-12-01 à 18.32.52.png…

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omarabedelkader Because you used 4 spaces instead of 1 tab

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right !
i think now it's fixed.

@@ -0,0 +1,20 @@
"
I'm a class that do sorting based on the size of the context itself.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does sorting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants