Skip to content

[Junie]: display scala 3 extension in editor breadcrumbs #685

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

Open
wants to merge 1 commit into
base: idea251.x
Choose a base branch
from

Conversation

jetbrains-junie[bot]
Copy link
Contributor

📌 PR Details

  • 🔗 Issue: #SCL-23500
  • 🏷 Title: display scala 3 extension in editor breadcrumbs

📝 Original Issue Description

Enable breadcrumbs if not yet
https://www.jetbrains.com/help/idea/settings-editor-breadcrumbs.html

object Utils {
  object Inner {
    extension (i: Int) {
      def myExtension1: String = {
        //PLACE CARET HERE
      }
    }
  }
}

Note that "extension" is lost in the breadcrumbs:

It feels like the method myExtension1 is defined in object Inner 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 on Project.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.

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.

0 participants