mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 19:34:16 +00:00
Remove old inlay hints settings
This commit is contained in:
parent
7ce3ca5aab
commit
f77adb3a23
3 changed files with 8 additions and 21 deletions
|
@ -298,12 +298,12 @@ export function serverVersion(ctx: Ctx): Cmd {
|
|||
};
|
||||
}
|
||||
|
||||
export function toggleInlayHints(ctx: Ctx): Cmd {
|
||||
export function toggleInlayHints(_ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
await vscode
|
||||
.workspace
|
||||
.getConfiguration(`${ctx.config.rootSection}.inlayHints`)
|
||||
.update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Global);
|
||||
const scope = vscode.ConfigurationTarget.Global;
|
||||
const config = vscode.workspace.getConfiguration("editor.inlayHints");
|
||||
const value = !config.get("enabled");
|
||||
await config.update('enabled', value, scope);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue