@@ -164,7 +164,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
164164 this . refreshApplicationWithoutDebug ( projectData , liveSyncResultInfo , debugOpts , outputPath ) ;
165165 }
166166
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 > {
168168 let result : IRefreshApplicationInfo = { didRestart : false } ;
169169 const platform = liveSyncResultInfo . deviceAppData . platform ;
170170 const platformLiveSyncService = this . getLiveSyncService ( platform ) ;
@@ -184,7 +184,9 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
184184 } ) ;
185185 }
186186
187- this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOpts , outputPath ) ;
187+ if ( settings && settings . shouldCheckDeveloperDiscImage ) {
188+ this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOpts , outputPath ) ;
189+ }
188190 }
189191
190192 this . emitLivesyncEvent ( LiveSyncEvents . liveSyncExecuted , {
@@ -214,7 +216,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
214216 this . handleDeveloperDiskImageError ( err , liveSyncResultInfo , projectData , debugOptions , outputPath ) ;
215217 }
216218 } 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 } ) ;
218220 didRestart = refreshInfo . didRestart ;
219221 }
220222
0 commit comments