add undo options (undo group id, isUndoing) to working copy service and bulk edit logic

This commit is contained in:
Johannes Rieken
2020-11-19 11:16:16 +01:00
parent 71fce013c9
commit 3665005621
9 changed files with 89 additions and 52 deletions

View File

@@ -37,8 +37,8 @@ export class MainThreadBulkEdits implements MainThreadBulkEditsShape {
dispose(): void { }
$tryApplyWorkspaceEdit(dto: IWorkspaceEditDto): Promise<boolean> {
$tryApplyWorkspaceEdit(dto: IWorkspaceEditDto, undoRedoGroupId?: number): Promise<boolean> {
const edits = reviveWorkspaceEditDto2(dto);
return this._bulkEditService.apply(edits).then(() => true, _err => false);
return this._bulkEditService.apply(edits, { undoRedoGroupId }).then(() => true, _err => false);
}
}