@@ -196,7 +196,7 @@ export class UserDataProfileImportExportService extends Disposable implements IU
196
196
const barrier = new Barrier ( ) ;
197
197
const exportAction = this . getExportAction ( barrier , userDataProfilesExportState ) ;
198
198
const cancelAction = new BarrierAction ( barrier , new Action ( 'cancel' , localize ( 'cancel' , "Cancel" ) ) ) ;
199
- await this . showProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW , userDataProfilesExportState . profile . name , [ exportAction ] , cancelAction , userDataProfilesExportState ) ;
199
+ await this . showProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW , userDataProfilesExportState . profile . name , [ exportAction ] , cancelAction , true , userDataProfilesExportState ) ;
200
200
await barrier . wait ( ) ;
201
201
await this . hideProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW ) ;
202
202
} finally {
@@ -245,7 +245,7 @@ export class UserDataProfileImportExportService extends Disposable implements IU
245
245
const barrier = new Barrier ( ) ;
246
246
const exportAction = this . getExportAction ( barrier , userDataProfilesExportState ) ;
247
247
const closeAction = new BarrierAction ( barrier , new Action ( 'close' , localize ( 'close' , "Close" ) ) ) ;
248
- await this . showProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW , userDataProfilesExportState . profile . name , [ exportAction ] , closeAction , userDataProfilesExportState ) ;
248
+ await this . showProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW , userDataProfilesExportState . profile . name , [ exportAction ] , closeAction , true , userDataProfilesExportState ) ;
249
249
await barrier . wait ( ) ;
250
250
await this . hideProfilePreviewView ( EXPORT_PROFILE_PREVIEW_VIEW ) ;
251
251
} finally {
@@ -372,7 +372,7 @@ export class UserDataProfileImportExportService extends Disposable implements IU
372
372
? new Action ( 'importInDesktop' , localize ( 'import in desktop' , "Import {0} profile in {1}" , importedProfile . name , this . productService . nameLong ) , undefined , true , async ( ) => this . openerService . open ( uri , { openExternal : true } ) )
373
373
: new BarrierAction ( barrier , new Action ( 'close' , localize ( 'close' , "Close" ) ) ) ;
374
374
375
- const view = await this . showProfilePreviewView ( IMPORT_PROFILE_PREVIEW_VIEW , importedProfile . name , [ importAction ] , secondaryAction , userDataProfileImportState ) ;
375
+ const view = await this . showProfilePreviewView ( IMPORT_PROFILE_PREVIEW_VIEW , importedProfile . name , [ importAction ] , secondaryAction , false , userDataProfileImportState ) ;
376
376
if ( ! extensions ) {
377
377
userDataProfileImportState . setDescription ( ProfileResourceType . Extensions , localize ( 'not applied' , "Not Applied" ) ) ;
378
378
const that = this ;
@@ -433,7 +433,7 @@ export class UserDataProfileImportExportService extends Disposable implements IU
433
433
if ( userDataProfileImportState . isEmpty ( ) ) {
434
434
await importAction . run ( ) ;
435
435
} else {
436
- await this . showProfilePreviewView ( IMPORT_PROFILE_PREVIEW_VIEW , profileTemplate . name , [ importAction ] , new BarrierAction ( barrier , new Action ( 'cancel' , localize ( 'cancel' , "Cancel" ) ) ) , userDataProfileImportState ) ;
436
+ await this . showProfilePreviewView ( IMPORT_PROFILE_PREVIEW_VIEW , profileTemplate . name , [ importAction ] , new BarrierAction ( barrier , new Action ( 'cancel' , localize ( 'cancel' , "Cancel" ) ) ) , false , userDataProfileImportState ) ;
437
437
}
438
438
await barrier . wait ( ) ;
439
439
await this . hideProfilePreviewView ( IMPORT_PROFILE_PREVIEW_VIEW ) ;
@@ -618,10 +618,12 @@ export class UserDataProfileImportExportService extends Disposable implements IU
618
618
return nameIndex + 1 ;
619
619
}
620
620
621
- private async showProfilePreviewView ( id : string , name : string , primary : IAction [ ] , secondary : IAction , userDataProfilesData : UserDataProfileImportExportState ) : Promise < UserDataProfilePreviewViewPane > {
621
+ private async showProfilePreviewView ( id : string , name : string , primary : IAction [ ] , secondary : IAction , refreshAction : boolean , userDataProfilesData : UserDataProfileImportExportState ) : Promise < UserDataProfilePreviewViewPane > {
622
622
const viewsRegistry = Registry . as < IViewsRegistry > ( Extensions . ViewsRegistry ) ;
623
623
const treeView = this . instantiationService . createInstance ( TreeView , id , name ) ;
624
- treeView . showRefreshAction = true ;
624
+ if ( refreshAction ) {
625
+ treeView . showRefreshAction = true ;
626
+ }
625
627
const actionRunner = new ActionRunner ( ) ;
626
628
const descriptor : ITreeViewDescriptor = {
627
629
id,
0 commit comments