@@ -68,8 +68,6 @@ const NUMBER_OF_FRAMES_TO_MEASURE = 20;
68
68
69
69
const SHOULD_PROMPT_FOR_PROFILE_MIGRATION_KEY = 'terminals.integrated.profile-migration' ;
70
70
71
- let migrationMessageShown = false ;
72
-
73
71
const enum Constants {
74
72
/**
75
73
* The maximum amount of milliseconds to wait for a container before starting to create the
@@ -145,6 +143,8 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
145
143
146
144
private _hasHadInput : boolean ;
147
145
146
+ messageShown : boolean = false ;
147
+
148
148
readonly statusList : ITerminalStatusList = new TerminalStatusList ( ) ;
149
149
disableLayout : boolean = false ;
150
150
get instanceId ( ) : number { return this . _instanceId ; }
@@ -362,7 +362,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
362
362
const shouldMigrateToProfile = ( ! ! this . _configurationService . getValue ( TerminalSettingPrefix . Shell + platform ) ||
363
363
! ! this . _configurationService . inspect ( TerminalSettingPrefix . ShellArgs + platform ) . userValue ) &&
364
364
! ! this . _configurationService . getValue ( TerminalSettingPrefix . DefaultProfile + platform ) ;
365
- if ( shouldMigrateToProfile && this . _storageService . getBoolean ( SHOULD_PROMPT_FOR_PROFILE_MIGRATION_KEY , StorageScope . WORKSPACE , true ) && ! migrationMessageShown ) {
365
+ if ( shouldMigrateToProfile && this . _storageService . getBoolean ( SHOULD_PROMPT_FOR_PROFILE_MIGRATION_KEY , StorageScope . WORKSPACE , true ) && ! this . messageShown ) {
366
366
this . _notificationService . prompt (
367
367
Severity . Info ,
368
368
nls . localize ( 'terminalProfileMigration' , "The terminal is using deprecated shell/shellArgs settings, do you want to migrate it to a profile?" ) ,
@@ -396,7 +396,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
396
396
neverShowAgain : { id : SHOULD_PROMPT_FOR_PROFILE_MIGRATION_KEY , scope : NeverShowAgainScope . WORKSPACE }
397
397
}
398
398
) ;
399
- migrationMessageShown = true ;
399
+ this . messageShown = true ;
400
400
}
401
401
}
402
402
0 commit comments