mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 19:34:16 +00:00
Allows triggering commands after an assist edit
This commit is contained in:
parent
e3ec87730a
commit
c6ffffccbd
18 changed files with 58 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue