@@ -116,7 +116,7 @@ export class ImportOrchestrator {
116116
117117 ctx . processFinished ( ProcessName . IMPORT )
118118
119- reporter . displayImportResult ( importResult , false ) ;
119+ await reporter . displayImportResult ( importResult , false ) ;
120120
121121 resourceInfoList . push ( ...( await pluginManager . getMultipleResourceInfo (
122122 project . resourceConfigs . map ( ( r ) => r . type )
@@ -194,7 +194,7 @@ export class ImportOrchestrator {
194194 }
195195
196196 // No writes
197- reporter . displayImportResult ( importResult , true ) ;
197+ await reporter . displayImportResult ( importResult , true ) ;
198198 await reporter . displayMessage ( '\n🎉 Imported completed 🎉' )
199199
200200 await sleep ( 100 ) ;
@@ -244,17 +244,17 @@ export class ImportOrchestrator {
244244
245245 // No changes to be made
246246 if ( diffs . every ( ( d ) => d . modification . diff === '' ) ) {
247- reporter . displayMessage ( '\nNo changes are needed! Exiting...' )
247+ await reporter . displayMessage ( '\nNo changes are needed! Exiting...' )
248248
249249 // Wait for the message to display before we exit
250250 await sleep ( 100 ) ;
251251 return ;
252252 }
253253
254- reporter . displayFileModifications ( diffs ) ;
254+ await reporter . displayFileModifications ( diffs ) ;
255255 const shouldSave = await reporter . promptConfirmation ( 'Save the changes?' ) ;
256256 if ( ! shouldSave ) {
257- reporter . displayMessage ( '\nSkipping save! Exiting...' ) ;
257+ await reporter . displayMessage ( '\nSkipping save! Exiting...' ) ;
258258
259259 // Wait for the message to display before we exit
260260 await sleep ( 100 ) ;
@@ -265,7 +265,7 @@ export class ImportOrchestrator {
265265 await FileUpdater . write ( diff . file , diff . modification . newFile ) ;
266266 }
267267
268- reporter . displayMessage ( '\n🎉 Imported completed and saved to file 🎉' ) ;
268+ await reporter . displayMessage ( '\n🎉 Imported completed and saved to file 🎉' ) ;
269269
270270 // Wait for the message to display before we exit
271271 await sleep ( 100 ) ;
@@ -448,11 +448,11 @@ ${JSON.stringify(unsupportedTypeIds)}`);
448448 const newFile = JSON . stringify ( importResult . result . map ( ( r ) => r . raw ) , null , 2 ) ;
449449 const diff = prettyFormatFileDiff ( '' , newFile ) ;
450450
451- reporter . displayFileModifications ( [ { file : filePath , modification : { newFile, diff } } ] ) ;
451+ await reporter . displayFileModifications ( [ { file : filePath , modification : { newFile, diff } } ] ) ;
452452
453453 const shouldSave = await reporter . promptConfirmation ( `Save the changes? (${ filePath } )` ) ;
454454 if ( ! shouldSave ) {
455- reporter . displayMessage ( '\nSkipping save! Exiting...' ) ;
455+ await reporter . displayMessage ( '\nSkipping save! Exiting...' ) ;
456456
457457 // Wait for the message to display before we exit
458458 await sleep ( 100 ) ;
@@ -461,7 +461,7 @@ ${JSON.stringify(unsupportedTypeIds)}`);
461461
462462 await FileUpdater . write ( filePath , newFile ) ;
463463
464- reporter . displayMessage ( '\n🎉 Imported completed and saved to file 🎉' ) ;
464+ await reporter . displayMessage ( '\n🎉 Imported completed and saved to file 🎉' ) ;
465465
466466 // Wait for the message to display before we exit
467467 await sleep ( 100 ) ;
0 commit comments