mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
using VSCode's native parameterHints.enabled setting
This commit is contained in:
parent
770734fdbb
commit
36281e0745
2 changed files with 4 additions and 9 deletions
|
@ -89,11 +89,11 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
|
|||
|
||||
export function triggerParameterHints(_: CtxInit): Cmd {
|
||||
return async () => {
|
||||
const autoTriggerParameterHints = vscode.workspace
|
||||
.getConfiguration("rust-analyzer")
|
||||
.get<boolean>("autoTriggerParameterHints");
|
||||
const parameterHintsEnabled = vscode.workspace
|
||||
.getConfiguration("editor")
|
||||
.get<boolean>("parameterHints.enabled");
|
||||
|
||||
if (autoTriggerParameterHints) {
|
||||
if (parameterHintsEnabled) {
|
||||
await vscode.commands.executeCommand("editor.action.triggerParameterHints");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue