Change the global setting when toggling inlay hints

This commit is contained in:
Laurențiu Nicola 2021-09-23 20:45:45 +03:00
parent eb727c7222
commit db5e01189a

View file

@ -292,7 +292,7 @@ export function toggleInlayHints(ctx: Ctx): Cmd {
await vscode await vscode
.workspace .workspace
.getConfiguration(`${ctx.config.rootSection}.inlayHints`) .getConfiguration(`${ctx.config.rootSection}.inlayHints`)
.update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Workspace); .update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Global);
}; };
} }