returnthis;// Make sure meanwhile someone else did not succeed in loading
// Return early if someone else managed to resolve the model by now
constisNewModel=!this.isResolved();
if(!isNewModel){
this.logService.trace('[text file model] load() - exit - without loading because previously new model got created meanwhile',this.resource.toString(true));
returnthis;
}
if(backup){
try{
returnawaitthis.loadFromBackup(backup,options);
}catch(error){
this.logService.error('[text file model] load() from backup',error);// ignore error and continue to load as file below
this.logService.error('[text file model] load() from backup',error,this.resource.toString(true));// ignore error and continue to load as file below