From c6ffffccbdfdcf084d5e280d4f47ed6d970bee56 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 19 Apr 2022 18:37:18 +0200 Subject: Allows triggering commands after an assist edit --- editors/code/src/commands.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editors/code') 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); + } }; } -- cgit 1.4.1-3-g733a5