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

Sort each kind of actions by relevance #1273

Merged
merged 3 commits into from
Nov 19, 2019
Merged

Conversation

Eskibear
Copy link
Contributor

fix #1250

Signed-off-by: Yan Zhang <[email protected]>

sort each kind of actions by relevance

Signed-off-by: Yan Zhang <[email protected]>

remove unused code

Signed-off-by: Yan Zhang <[email protected]>

use a single comparator instance

Signed-off-by: Yan Zhang <[email protected]>
@fbricon
Copy link
Contributor

fbricon commented Nov 18, 2019

Can we get some unit tests to prevent future regressions?

@Eskibear
Copy link
Contributor Author

I just added assertion that the base kinds of actions should follow the order quickfix > refactor > source. But it requires PR#1279 , as the kind of "add final modifier" action was wronly set to "quickfix".

@fbricon
Copy link
Contributor

fbricon commented Nov 19, 2019

test this please

@fbricon fbricon merged commit 99ceb8e into eclipse-jdtls:master Nov 19, 2019
@Eskibear Eskibear deleted the pr-sort branch November 20, 2019 00:38
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.

Code Actions are not sorted by relevance
2 participants