diff options
| author | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-04-19 18:37:18 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-04-19 18:45:48 +0200 |
| commit | c6ffffccbdfdcf084d5e280d4f47ed6d970bee56 (patch) | |
| tree | 3ef6394b82f3f856346c39c1d4bdcdaaa35ec95d /editors/code/src | |
| parent | e3ec87730aaabccff4200b218528bd5f7fa57ff9 (diff) | |
| download | rust-c6ffffccbdfdcf084d5e280d4f47ed6d970bee56.tar.gz rust-c6ffffccbdfdcf084d5e280d4f47ed6d970bee56.zip | |
Allows triggering commands after an assist edit
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 18f5b3aa101..a808d5ec6d8 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -735,6 +735,9 @@ export function resolveCodeAction(ctx: Ctx): Cmd { const fileSystemEdit = await client.protocol2CodeConverter.asWorkspaceEdit(lcFileSystemEdit); await vscode.workspace.applyEdit(fileSystemEdit); await applySnippetWorkspaceEdit(edit); + if (item.command != null) { + await vscode.commands.executeCommand(item.command.command, item.command.arguments); + } }; } |
