Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve symbol order in completions provided by the presentation compiler #23888

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

Merged
tgodzik merged 2 commits into scala:main from Perl99:metals-7642-completions-order
Sep 12, 2025

Conversation

Copy link
Contributor

@Perl99 Perl99 commented Sep 8, 2025

Extension methods that are not in the same file are placed after all Product methods and even after extension methods like "ensuring". This PR penalizes the following methods, so that they are no longer at the top of the suggestions:

  • scala.Product.*
  • scala.Equals.*
  • scala.Predef.ArrowAssoc.*
  • scala.Predef.Ensuring.*
  • scala.Predef.StringFormat.*
  • scala.Predef.nn
  • scala.Predef.runtimeChecked

Resolves scalameta/metals#7642

TomasMikula reacted with hooray emoji
...iler
Extension methods that are not in the same file are placed after all Product methods and even after extension methods like "ensuring". This PR penalizes the following methods, so that they are no longer at the top of the suggestions:
- scala.Product.*
- scala.Equals.*
- scala.Predef.ArrowAssoc.*
- scala.Predef.Ensuring.*
- scala.Predef.StringFormat.*
- scala.Predef.nn
- scala.Predef.runtimeChecked
Resolves scalameta/metals#7642 
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Minor issue from my side, but great work!

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@tgodzik tgodzik merged commit 7d27633 into scala:main Sep 12, 2025
44 checks passed
@Perl99 Perl99 deleted the metals-7642-completions-order branch September 15, 2025 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@som-snytt som-snytt som-snytt left review comments

@tgodzik tgodzik tgodzik approved these changes

@zielinsky zielinsky Awaiting requested review from zielinsky

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Order of suggested completions: Extensions from companion should rank higher

AltStyle によって変換されたページ (->オリジナル) /