mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 19:34:16 +00:00
Automatic parameter hints trigger can be toggled on/off
This commit is contained in:
parent
2400b36a2e
commit
770734fdbb
2 changed files with 12 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue