diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2023-02-14 14:45:48 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2023-02-14 14:45:48 +0100 |
| commit | 95fa278f30673db0e464825a8a3c77865fe33f78 (patch) | |
| tree | 2f18305c98471f17a78e5c6bf9c3afee33bd45bc /editors/code/src | |
| parent | 44568007d1f3d51b84ad58d2ddeda2badd3aeea5 (diff) | |
| download | rust-95fa278f30673db0e464825a8a3c77865fe33f78.tar.gz rust-95fa278f30673db0e464825a8a3c77865fe33f78.zip | |
Don't assume VSCode internal commands in the server
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 }, }; } |
