Skip to content
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

toggle inlay hints vscode command no longer available #13691

Closed
ben-albrecht opened this issue Nov 29, 2022 · 2 comments
Closed

toggle inlay hints vscode command no longer available #13691

ben-albrecht opened this issue Nov 29, 2022 · 2 comments

Comments

@ben-albrecht
Copy link

ben-albrecht commented Nov 29, 2022

The toggle inlay hints setting was introduced in #4601. Multiple users including myself recently noticed this setting is no longer available in VS Code.

rust-analyzer version:

rust-analyzer version: 0.3.1293-standalone (26562973b 2022-11-20)

rustc version:

rustc 1.65.0 (897e37553 2022-11-02)

relevant settings:

VS Code version:

Version: 1.73.1 (Universal)
Commit: 6261075646f055b99068d3688932416f2346dd3b
@Veykril
Copy link
Member

Veykril commented Nov 29, 2022

The command has been removed in a more recent version as it is no longer rust-analyzer specific.

@ben-albrecht
Copy link
Author

ben-albrecht commented Nov 29, 2022

Thanks @Veykril, I didn't catch that it was removed.

For anyone else stumbling across this issue, rationale and code change of removal is here: #13215

The suggested work-around is to use the Toggle extension to redefine the toggle hotkey, example keybindings.json below:

{
    "key": "shift+alt+x",
    "command": "toggle",
    "when": "editorTextFocus",
    "args": {
        "id": "toggle_inlay_hints",
        "value": [
            {
                "editor.inlayHints.enabled": "on"
            },
            {
                "editor.inlayHints.enabled": "off"
            }
        ]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants