Hover on annotation in Scala just shows the Ref it's on #3593
Labels
presentation-compiler
Something relating to the presentation compiler
Scala 3
Generic ticket relating to Scala 3
Milestone
Describe the bug
Having a minimal piece of code like this:
When you attempt to do a hover on
@nowarn
you actually get theTypeRef
ofFoo
shown instead of the information about@nowarn
.The tree that is returned here for this pos is:
I actually stumbled onto this because of something else (trying to understand when I'd see the
Annotated
tree) and then realizing I could never see it when testing with untyped trees or typed ones. Then I looked at how Metals would show this, and it also doesn't show the annotation. Is this actually an updates issue thatAnnotated
is never in the tree?Expected behavior
I'd expect that this show the signature and scaladocs for
@nowarn
instead of forFoo
.Operating system
macOS
Editor/Extension
Nvim (nvim-metals)
Version of Metals
0.11.1+47-66ea31ef-SNAPSHOT
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: