Change the global setting when toggling inlay hints
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user