diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2023-02-20 10:14:12 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2023-02-20 10:14:12 +0200 |
| commit | 7e711da2f07778d62f6411de5da520f1e260d761 (patch) | |
| tree | 323737a55a6a0ed6962bf1eadc3459edff92e5a5 /editors/code/src | |
| parent | bc45c7659a4668206922c290dfc1b78b7e57d375 (diff) | |
| download | rust-7e711da2f07778d62f6411de5da520f1e260d761.tar.gz rust-7e711da2f07778d62f6411de5da520f1e260d761.zip | |
:arrow_up: rust-analyzer
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands.ts | 6 | ||||
| -rw-r--r-- | editors/code/src/main.ts | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index b5b64e33e07..49a8ca4edba 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -87,6 +87,12 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd { }; } +export function triggerParameterHints(_: CtxInit): Cmd { + return async () => { + await vscode.commands.executeCommand("editor.action.triggerParameterHints"); + }; +} + export function matchingBrace(ctx: CtxInit): Cmd { return async () => { const editor = ctx.activeRustEditor; diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index dd439317c70..5987368e6e0 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -186,5 +186,6 @@ function createCommands(): Record<string, CommandFactory> { resolveCodeAction: { enabled: commands.resolveCodeAction }, runSingle: { enabled: commands.runSingle }, showReferences: { enabled: commands.showReferences }, + triggerParameterHints: { enabled: commands.triggerParameterHints }, }; } |
