Skip to content

Commit 36281e0

Browse files
using VSCode's native parameterHints.enabled setting
1 parent 770734f commit 36281e0

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

editors/code/package.json

-5
Original file line numberDiff line numberDiff line change
@@ -1455,11 +1455,6 @@
14551455
"Search in current workspace and dependencies."
14561456
]
14571457
},
1458-
"rust-analyzer.autoTriggerParameterHints": {
1459-
"type": "boolean",
1460-
"default": true,
1461-
"markdownDescription": "Enable or disable automatic triggering of parameter hints when accepting suggestions."
1462-
},
14631458
"$generated-end": {}
14641459
}
14651460
},

editors/code/src/commands.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
8989

9090
export function triggerParameterHints(_: CtxInit): Cmd {
9191
return async () => {
92-
const autoTriggerParameterHints = vscode.workspace
93-
.getConfiguration("rust-analyzer")
94-
.get<boolean>("autoTriggerParameterHints");
92+
const parameterHintsEnabled = vscode.workspace
93+
.getConfiguration("editor")
94+
.get<boolean>("parameterHints.enabled");
9595

96-
if (autoTriggerParameterHints) {
96+
if (parameterHintsEnabled) {
9797
await vscode.commands.executeCommand("editor.action.triggerParameterHints");
9898
}
9999
};

0 commit comments

Comments
 (0)