You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in the process of learning Rust with VS Code and something is slowing me down when I write code.
When a parameter is waited for example when I write thread::spawn( a help popup is showing up, giving me a brief signature of the function as well as the description and code examples.
The problem here is the signature isn't fully shown: fn spawn(f: F) -> JoinHandle<T> (see bellow)
I believe this popup is the parameterHints popup because I can completely disable it in the settings "editor.parameterHints.enabled":false.
However I'd like to be able to set this to be just like when we hover the mouse over the function
Here I can see the full function's signature showing me the traits and lifetimes of the parameters.
Rust-analyzer's specific settings for this are in rust-analyzer.inlayHints.parameterHints but there's only the enable option available (not sure about the difference with the editor.parameterHints.enabled setting).
Is there a way to configure the behavior of the parameter hints's popup?
Should I create an issue instead of a discussion?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
Currently in the process of learning Rust with VS Code and something is slowing me down when I write code.
When a parameter is waited for example when I write

thread::spawn(
a help popup is showing up, giving me a brief signature of the function as well as the description and code examples.The problem here is the signature isn't fully shown:
fn spawn(f: F) -> JoinHandle<T>
(see bellow)I believe this popup is the
parameterHints
popup because I can completely disable it in the settings"editor.parameterHints.enabled":false
.However I'd like to be able to set this to be just like when we hover the mouse over the function

Here I can see the full function's signature showing me the traits and lifetimes of the parameters.
Rust-analyzer's specific settings for this are in
rust-analyzer.inlayHints.parameterHints
but there's only theenable
option available (not sure about the difference with theeditor.parameterHints.enabled
setting).Is there a way to configure the behavior of the parameter hints's popup?
Should I create an issue instead of a discussion?
Thanks for your anszwers
Beta Was this translation helpful? Give feedback.
All reactions