// 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,this.resource.toString(true));// ignore error and continue to load as file below
// Abort if someone else managed to resolve the model by now
letisNewModel=!this.isResolved();
if(!isNewModel){
this.logService.trace('[text file model] loadFromBackup() - exit - without loading because previously new model got created meanwhile',this.resource.toString(true));
returnthis;// imply that loading has happened in another operation