this.backupFileService.backupResource(resource,content);// Very important here to not return the promise because if the timeout promise is canceled it will bubble up the error otherwise - do not change
});
this.backupPromises.push(promise);
returnpromise;
}
privatecancelBackupPromises():void{
while(this.backupPromises.length){
this.backupPromises.pop().cancel();
}
}
/**
* Performs an immedate backup of all dirty file and untitled models.
*/
...
...
@@ -106,7 +71,7 @@ export class BackupService implements IBackupService {