Unnamed repository; edit this file 'description' to name the repository.
Merge #10321
10321: fix: Change the global setting when toggling inlay hints r=lnicola a=lnicola Closes #10318 Co-authored-by: LaurenČ›iu Nicola <[email protected]>
bors[bot] 2021-09-24
parent 61bb0cf · parent db5e011 · commit 8398859
-rw-r--r--editors/code/src/commands.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index ece7001382..0e08b60a93 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -292,7 +292,7 @@ export function toggleInlayHints(ctx: Ctx): Cmd {
await vscode
.workspace
.getConfiguration(`${ctx.config.rootSection}.inlayHints`)
- .update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Workspace);
+ .update('enable', !ctx.config.inlayHints.enable, vscode.ConfigurationTarget.Global);
};
}