[Junie]: display scala 3 extension in editor breadcrumbs #685
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 PR Details
📝 Original Issue Description
Note that "extension" is lost in the breadcrumbs:

It feels like the method
myExtension1
is defined in objectInner
directly.It can confuse in big code bases.
I was confused in the sources of sbt 2.0.0-M3 in
sbt.ProjectExtra#extract
method which is actually an extension method onProject.type
, which is not visible in the breadcrumbs.We might display
extension(TypeName)
(without all the details, like type parameters, etc...📊 Junie Summary
A breadcrumb UI enhancement was implemented for Scala 3 extension methods in the IntelliJ IDEA IDE, enabling the display of "extension(TypeName) methodName" in breadcrumbs. The implementation is error-free, and all relevant tests were confirmed to pass successfully.