-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Successively disabling and enabling inlay hints doesn't reliably work without typing a character #12027
Comments
I was ready to chalk this off as a Code bug (which is still possible), but the command works in a TypeScript file. You can also notice how hints flash after being enabled. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
At the time of writing the latest version of the VSCode extension is v0.2.1022 (which was released yesterday). This version still includes It may also be more desirable to change the |
fix: Remove `rust-analyzer.inlayHints.enable` and set language scope Closes #12036 CC #12027 (comment) The key was left there by mistake in #12006. Setting the configuration scope only works if you already have it created, which is fine, but unfortunately not quite discoverable.
Hi, |
Not a fix for this, but the new version of Code is more flexible in this regard: Editor › Inlay Hints: Enabled value:
|
The new "OnUlessPressed" mode works perfectly for me. I'm fine if we close this issue. |
I'm worried that this is currently broken anyway, since it toggles between |
Yes, vscode preferences editor gave good error about invalid value (true) for inlay hint setting. |
@villem actually, can you try the |
Never mind, it works in a test project, but not in a larger one. |
Ah, the dreaded |
rust-analyzer version: rust-analyzer version: 65fbe0a 2022-04-18 stable
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)
relevant settings: Vscode 1.66 on Linux
In the previous version of the extension, I could easily toogle inlay hints with the
Rust Analyzer: Toggle inlay hints
command.Now, with the switch to LSP inlay hints, I cannot reenable inlay hints immediately after disabling it, and I need to type a character to "refresh" rust-analyzer.
In the following video, the inlay hints stop working at
0:06
, then after I insert a space at0:10
, it works again at0:12
:out.mp4
The text was updated successfully, but these errors were encountered: