From 770734fdbb066f89fa951273a4ac03003ce0ff59 Mon Sep 17 00:00:00 2001 From: Nagy Botond <75550932+westernwontons@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:41:15 +0300 Subject: Automatic parameter hints trigger can be toggled on/off --- editors/code/src/commands.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 5209fecc069..c1da65d8915 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("autoTriggerParameterHints"); + + if (autoTriggerParameterHints) { + await vscode.commands.executeCommand("editor.action.triggerParameterHints"); + } }; } -- cgit 1.4.1-3-g733a5