mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
using VSCode's native parameterHints.enabled setting
This commit is contained in:
parent
770734fdbb
commit
36281e0745
@ -1455,11 +1455,6 @@
|
|||||||
"Search in current workspace and dependencies."
|
"Search in current workspace and dependencies."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"rust-analyzer.autoTriggerParameterHints": {
|
|
||||||
"type": "boolean",
|
|
||||||
"default": true,
|
|
||||||
"markdownDescription": "Enable or disable automatic triggering of parameter hints when accepting suggestions."
|
|
||||||
},
|
|
||||||
"$generated-end": {}
|
"$generated-end": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -89,11 +89,11 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
|
|||||||
|
|
||||||
export function triggerParameterHints(_: CtxInit): Cmd {
|
export function triggerParameterHints(_: CtxInit): Cmd {
|
||||||
return async () => {
|
return async () => {
|
||||||
const autoTriggerParameterHints = vscode.workspace
|
const parameterHintsEnabled = vscode.workspace
|
||||||
.getConfiguration("rust-analyzer")
|
.getConfiguration("editor")
|
||||||
.get<boolean>("autoTriggerParameterHints");
|
.get<boolean>("parameterHints.enabled");
|
||||||
|
|
||||||
if (autoTriggerParameterHints) {
|
if (parameterHintsEnabled) {
|
||||||
await vscode.commands.executeCommand("editor.action.triggerParameterHints");
|
await vscode.commands.executeCommand("editor.action.triggerParameterHints");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user