Skip to content

Conversation

Perl99
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

…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
WojciechMazur pushed a commit that referenced this pull request Sep 23, 2025
…iler (#23888)

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
[Cherry-picked 7d27633]
WojciechMazur added a commit that referenced this pull request Sep 23, 2025
…ation compiler" to 3.7.4 (#24048)

Backports #23888 to the 3.7.4.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added this to the 3.7.4 milestone Sep 23, 2025
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Sep 26, 2025
…iler (scala#23888)

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
tgodzik added a commit to scala/scala3-lts that referenced this pull request Sep 26, 2025
…iler (scala#23888)

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
[Cherry-picked 7d27633][modified]
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.

Order of suggested completions: Extensions from companion should rank higher
4 participants