We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de7793 commit ad751e0Copy full SHA for ad751e0
editors/code/src/commands.ts
@@ -300,10 +300,9 @@ export function serverVersion(ctx: Ctx): Cmd {
300
301
export function toggleInlayHints(_ctx: Ctx): Cmd {
302
return async () => {
303
- const scope = vscode.ConfigurationTarget.Global;
304
- const config = vscode.workspace.getConfiguration("editor.inlayHints");
+ const config = vscode.workspace.getConfiguration("editor.inlayHints", { languageId: "rust" });
305
const value = !config.get("enabled");
306
- await config.update('enabled', value, scope);
+ await config.update('enabled', value, vscode.ConfigurationTarget.Global);
307
};
308
}
309
0 commit comments