@@ -164,7 +164,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
164
164
this . refreshApplicationWithoutDebug ( projectData , liveSyncResultInfo , debugOpts , outputPath ) ;
165
165
}
166
166
167
- private async refreshApplicationWithoutDebug ( projectData : IProjectData , liveSyncResultInfo : ILiveSyncResultInfo , debugOpts ?: IDebugOptions , outputPath ?: string , settings ?: IShouldSkipEmitLiveSyncNotification ) : Promise < IRefreshApplicationInfo > {
167
+ private async refreshApplicationWithoutDebug ( projectData : IProjectData , liveSyncResultInfo : ILiveSyncResultInfo , debugOpts ?: IDebugOptions , outputPath ?: string , settings ?: IRefreshApplicationSettings ) : Promise < IRefreshApplicationInfo > {
168
168
let result : IRefreshApplicationInfo = { didRestart : false } ;
169
169
const platform = liveSyncResultInfo . deviceAppData . platform ;
170
170
const platformLiveSyncService = this . getLiveSyncService ( platform ) ;
@@ -184,7 +184,9 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
184
184
} ) ;
185
185
}
186
186
187
- this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOpts , outputPath ) ;
187
+ if ( settings && settings . shouldCheckDeveloperDiscImage ) {
188
+ this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOpts , outputPath ) ;
189
+ }
188
190
}
189
191
190
192
this . emitLivesyncEvent ( LiveSyncEvents . liveSyncExecuted , {
@@ -214,7 +216,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
214
216
this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOptions , outputPath ) ;
215
217
}
216
218
} else {
217
- const refreshInfo = await this . refreshApplicationWithoutDebug ( projectData , liveSyncResultInfo , debugOptions , outputPath , { shouldSkipEmitLiveSyncNotification : true } ) ;
219
+ const refreshInfo = await this . refreshApplicationWithoutDebug ( projectData , liveSyncResultInfo , debugOptions , outputPath , { shouldSkipEmitLiveSyncNotification : true , shouldCheckDeveloperDiscImage : true } ) ;
218
220
didRestart = refreshInfo . didRestart ;
219
221
}
220
222
0 commit comments