提交 9c30a0e9 编写于 作者: I isidor

null guard

上级 780ae767
......@@ -74,8 +74,8 @@ export class MainThreadFileSystemEventService {
const fileOperationParticipant = new class implements IWorkingCopyFileOperationParticipant {
async participate(files: SourceTargetPair[], operation: FileOperation, undoInfo: IFileOperationUndoRedoInfo, timeout: number, token: CancellationToken) {
if (undoInfo.isUndoing) {
async participate(files: SourceTargetPair[], operation: FileOperation, undoInfo: IFileOperationUndoRedoInfo | undefined, timeout: number, token: CancellationToken) {
if (undoInfo?.isUndoing) {
return;
}
......@@ -171,7 +171,7 @@ export class MainThreadFileSystemEventService {
await bulkEditService.apply(
reviveWorkspaceEditDto2(data.edit),
{ undoRedoGroupId: undoInfo.undoRedoGroupId, showPreview }
{ undoRedoGroupId: undoInfo?.undoRedoGroupId, showPreview }
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册