-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Type hover/tooltip links always link to outer-most type #17628
Comments
🤔 that's weird. It's been broken for me for quite some time. In fact, it's broken for me even on the stable r-a extension version. :s |
can reproduce on windows wsl |
I don't know what happened, but now I can also reproduce this bug now. 🫠 |
Assuming the bug is only a couple weeks old it might be due to ff07caa#diff-bca0ed357f47caaadd008edc9b2df19f36869583b78c2c0265b9f0db3650df2e which changed some vscode specific handling here. |
Oh ye thats it 🤦 We overwrite the global for every link so only the last one persists. That global ought to track an array of links which gets overwritten on the next hover, not when rendering a command ff07caa#diff-bca0ed357f47caaadd008edc9b2df19f36869583b78c2c0265b9f0db3650df2eR402 |
fix: tweak hover/tooltip links close rust-lang/rust-analyzer#17628
fix: tweak hover/tooltip links close rust-lang/rust-analyzer#17628
When clicking
String
orGlobal
in this info tooltip/hover UI, it always goes toVec
. Generally, it seems to go to the "outer-most" type instead of the one you clicked. This is of course especially annoying when looking at something with an inferred type ^^rust-analyzer version:
rust-analyzer version: 0.4.2040-standalone (a62ea0a59 2024-07-17)
rustc version:
rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension:
code snippet to reproduce:
and hover over
bar
The text was updated successfully, but these errors were encountered: