-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
Scala 2Scala 3Generic ticket relating to Scala 3Generic ticket relating to Scala 3presentation-compilerSomething relating to the presentation compilerSomething relating to the presentation compiler
Milestone
Description
Describe the bug
Code:
trait Foo {
def someNum
def apply(i: Int): Unit = println(someNum)
}
object Bar extends Foo {
def someNum = 42
}
object Test {
Bar(2)
}
Cursor on Bar
in Bar(2)
, go-to-definition goes to Foo.apply
.
Expected behavior
Go-to definition should report two definitions:
object Bar
def apply
onFoo
LSP is designed to accommodate multiple definitions.
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
1.5.1
Extra context or search terms
No response
Metadata
Metadata
Assignees
Labels
Scala 2Scala 3Generic ticket relating to Scala 3Generic ticket relating to Scala 3presentation-compilerSomething relating to the presentation compilerSomething relating to the presentation compiler
Type
Projects
Status
Done