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

Document highlight on method from implicit class with default arguments #5923

Open
jkciesluk opened this issue Dec 7, 2023 · 0 comments
Open
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 2

Comments

@jkciesluk
Copy link
Member

Describe the bug

object Foo {
  implicit class Xtension(s: String) {
    def someVeryyyyyyLongName(suffix: String = "suf"): String = ???
  }
  
  val y = "abc".someV@@eryyyyyyLongName()
  // highlight returns
  val y = <<"abc".someV@@eryyyyyyLo>>ngName()
  
}

Probably the span is incorrect.

Expected behavior

Document highlight (and other PC features like semantic highlighting) work correctly

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

1.1.0+130-c1f98d2f-SNAPSHOT

Extra context or search terms

No response

@jkciesluk jkciesluk added bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 2 labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 2
Projects
None yet
Development

No branches or pull requests

1 participant