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 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+ },
14581463 "$generated-end" : {}
14591464 }
14601465 },
Original file line number Diff line number Diff line change @@ -89,7 +89,13 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
8989
9090export function triggerParameterHints ( _ : CtxInit ) : Cmd {
9191 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+ }
9399 } ;
94100}
95101
You can’t perform that action at this time.
0 commit comments