Remove old inlay hints settings

This commit is contained in:
Laurențiu Nicola 2022-04-16 08:04:52 +03:00
parent 7ce3ca5aab
commit f77adb3a23
3 changed files with 8 additions and 21 deletions

View file

@ -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);
};
}