提交 a029dda2 编写于 作者: J Johannes Rieken
上级 0a2cb763
......@@ -19,12 +19,6 @@ export class MainThreadBulkEdits implements MainThreadBulkEditsShape {
$tryApplyWorkspaceEdit(dto: IWorkspaceEditDto, undoRedoGroupId?: number): Promise<boolean> {
const edits = reviveWorkspaceEditDto2(dto);
return this._bulkEditService.apply(edits, {
// having a undoRedoGroupId means that this is a nested workspace edit,
// e.g one from a onWill-handler and for now we need to forcefully suppress
// refactor previewing, see: https://github.com/microsoft/vscode/issues/111873#issuecomment-738739852
undoRedoGroupId,
suppressPreview: typeof undoRedoGroupId === 'number' ? true : undefined
}).then(() => true, _err => false);
return this._bulkEditService.apply(edits, { undoRedoGroupId }).then(() => true, _err => false);
}
}
......@@ -64,7 +64,12 @@ export class MainThreadFileSystemEventService {
}
const data = await proxy.$onWillRunFileOperation(operation, files, timeout, token);
const edit = reviveWorkspaceEditDto2(data);
await bulkEditService.apply(edit, { undoRedoGroupId });
await bulkEditService.apply(edit, {
undoRedoGroupId,
// this is a nested workspace edit, e.g one from a onWill-handler and for now we need to forcefully suppress
// refactor previewing, see: https://github.com/microsoft/vscode/issues/111873#issuecomment-738739852
suppressPreview: true
});
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册