File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1455
1455
" Search in current workspace and dependencies."
1456
1456
]
1457
1457
},
1458
+ "rust-analyzer.autoTriggerParameterHints" : {
1459
+ "type" : " boolean" ,
1460
+ "default" : true ,
1461
+ "markdownDescription" : " Enable or disable automatic triggering of parameter hints when accepting suggestions."
1462
+ },
1458
1463
"$generated-end" : {}
1459
1464
}
1460
1465
},
Original file line number Diff line number Diff line change @@ -89,7 +89,13 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
89
89
90
90
export function triggerParameterHints ( _ : CtxInit ) : Cmd {
91
91
return async ( ) => {
92
- await vscode . commands . executeCommand ( "editor.action.triggerParameterHints" ) ;
92
+ const autoTriggerParameterHints = vscode . workspace
93
+ . getConfiguration ( "rust-analyzer" )
94
+ . get < boolean > ( "autoTriggerParameterHints" ) ;
95
+
96
+ if ( autoTriggerParameterHints ) {
97
+ await vscode . commands . executeCommand ( "editor.action.triggerParameterHints" ) ;
98
+ }
93
99
} ;
94
100
}
95
101
You can’t perform that action at this time.
0 commit comments