-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: adds hover hint to ".." in record pattern #13638
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
Conversation
currently only works with struct pattern
and remove unnecessary check
Huh, this is weird. Now, the
And then trying to start r-a gives this error:
And sometimes
The weirdest thing is that I stashed my changes and retried, but it still isn't working. Did a recent VSCode update break stuff? |
You might need to update your vscode, we recently bumped the minimum version i think |
Even weirder: I'm using the latest version (v1.73.1) |
change struct_rest_pat to guarentee a HoverResult Move token and node matching out of struct_rest_pat into hover
@rustbot label -S-waiting-on-author +S-waiting-on-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to add a test or two
crates/ide/src/hover.rs
Outdated
@@ -87,7 +87,7 @@ pub struct HoverResult { | |||
// Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code. | |||
// Focusing is usually hovering with a mouse, but can also be triggered with a shortcut. | |||
// | |||
// image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917a-11eb-9f88-3dbc27320c95.gif[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The []
should stay here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do that, but is there any reasoning that I'm missing? Which syntax is image::
? I don't think it's a Markdown thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's Asciidoc
Co-authored-by: Lukas Wirth <[email protected]>
Is there a reason that the |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
|
Thanks! |
☀️ Test successful - checks-actions |
Hovering on the "rest" pattern in struct destructuring,
shows:
Currently only works with struct patterns.