Open kubukoz opened 2 years ago
Thanks for reporting! This looks related to https://github.com/scalameta/metals/issues/4255 and probably can be fixed in a similar manner.
Oh, maybe it's already fixed then. Let me try a snapshot...
It works in 0.11.8+203-5b1c34ca-SNAPSHOT
:
Both apply
and the object it's being called on are shown (even if apply
comes from a third-party trait) - I'm satisfied :)
thanks @tgodzik for the link!
That's cool! These are the best issues :sweat_smile:
hmm I think this doesn't actually work on Scala 3.
hmm I think this doesn't actually work on Scala 3.
We might not have the synthetics for that. :thinking:
Describe the bug
In an "implicit" call to an apply method, if the method isn't synthetic, it should be shown as one of the definitions. Currently "go to definition" moves you to the companion object instead of the actual method.
To reproduce:
A
insideobject B
object A<here>
Expected behavior
Not sure if it should be an addition or a replacement, but it should surely be one of the options: the
apply
method should be one of the targets of "go to definition".Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v0.11.8
Extra context or search terms
No response