-
Notifications
You must be signed in to change notification settings - Fork 338
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
"Find All References" does not work on extension methods #5478
Comments
I think the problem is likely the opaque type, not the extension method. |
Thanks for reporting! This might need some fixes in the compiler itself as the semanticdb document is generated there. I will raise a new issue there. |
Actually, coming back to this and trying to reproduce it I am unable to do that.
works ok, do you have any examples? |
@tgodzik try without importing object Main {
val deck: Deck = ???
println(deck.size)
println(deck.fooSize)
} |
How log ago was this bug introduced? Because searching for references in extension methods has never worked for me, for many Scala releases. |
@strelec I assume that it was simply always not working ;) |
This seems to be a bug in the compiler, but should be fixed in the next release scala/scala3#18557 |
Describe the bug
In the snippet below, if you search for usages of extension method
Deck.size()
, Metals only finds the local usage infooSize
, but ignores usages in other classes and files.Expected behavior
"Find All References" finds references across the whole project.
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
v1.0.0 (newest version)
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: