Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index a808d5ec6d..1e89938c05 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -300,10 +300,9 @@ export function serverVersion(ctx: Ctx): Cmd {
export function toggleInlayHints(_ctx: Ctx): Cmd {
return async () => {
- const scope = vscode.ConfigurationTarget.Global;
- const config = vscode.workspace.getConfiguration("editor.inlayHints");
+ const config = vscode.workspace.getConfiguration("editor.inlayHints", { languageId: "rust" });
const value = !config.get("enabled");
- await config.update('enabled', value, scope);
+ await config.update('enabled', value, vscode.ConfigurationTarget.Global);
};
}