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.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 5209fecc06..c1da65d891 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -89,7 +89,13 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
export function triggerParameterHints(_: CtxInit): Cmd {
return async () => {
- await vscode.commands.executeCommand("editor.action.triggerParameterHints");
+ const autoTriggerParameterHints = vscode.workspace
+ .getConfiguration("rust-analyzer")
+ .get<boolean>("autoTriggerParameterHints");
+
+ if (autoTriggerParameterHints) {
+ await vscode.commands.executeCommand("editor.action.triggerParameterHints");
+ }
};
}