@@ -62,6 +62,7 @@ import { flatten } from '../../system/object';
62
62
import { pauseOnCancelOrTimeout } from '../../system/promise' ;
63
63
import { pluralize } from '../../system/string' ;
64
64
import { createDisposable } from '../../system/unifiedDisposable' ;
65
+ import { isWalkthroughSupported } from '../../telemetry/walkthroughStateProvider' ;
65
66
import { LoginUriPathPrefix } from './authenticationConnection' ;
66
67
import { authenticationProviderScopes } from './authenticationProvider' ;
67
68
import type { GKCheckInResponse } from './models/checkin' ;
@@ -482,13 +483,13 @@ export class SubscriptionService implements Disposable {
482
483
void this . resendVerification ( source ) ;
483
484
}
484
485
} else if ( isSubscriptionPaid ( this . _subscription ) ) {
485
- const learn : MessageItem = { title : 'Learn More' } ;
486
+ const learn : MessageItem | undefined = isWalkthroughSupported ( ) ? { title : 'Learn More' } : undefined ;
486
487
const confirm : MessageItem = { title : 'Continue' , isCloseAffordance : true } ;
487
488
const result = await window . showInformationMessage (
488
489
`You are now on ${ actual . name } and have full access to all GitLens Pro features.` ,
489
490
{ modal : true } ,
490
491
confirm ,
491
- learn ,
492
+ ... ( learn ? [ learn ] : [ ] ) ,
492
493
) ;
493
494
494
495
if ( result === learn ) {
@@ -497,7 +498,7 @@ export class SubscriptionService implements Disposable {
497
498
} else if ( isSubscriptionTrial ( this . _subscription ) ) {
498
499
const days = getSubscriptionTimeRemaining ( this . _subscription , 'days' ) ?? 0 ;
499
500
500
- const learn : MessageItem = { title : 'Learn More' } ;
501
+ const learn : MessageItem | undefined = isWalkthroughSupported ( ) ? { title : 'Learn More' } : undefined ;
501
502
const confirm : MessageItem = { title : 'Continue' , isCloseAffordance : true } ;
502
503
const result = await window . showInformationMessage (
503
504
`Welcome to your ${ effective . name } Trial.\n\nYou now have full access to all GitLens Pro features for ${
@@ -508,15 +509,17 @@ export class SubscriptionService implements Disposable {
508
509
detail : 'Your trial also includes access to the GitKraken DevEx platform, unleashing powerful Git visualization & productivity capabilities everywhere you work: IDE, desktop, browser, and terminal.' ,
509
510
} ,
510
511
confirm ,
511
- learn ,
512
+ ... ( learn ? [ learn ] : [ ] ) ,
512
513
) ;
513
514
514
515
if ( result === learn ) {
515
516
void this . learnAboutPro ( { source : 'prompt' , detail : { action : 'trial-started' } } , source ) ;
516
517
}
517
518
} else {
518
519
const upgrade : MessageItem = { title : 'Upgrade to Pro' } ;
519
- const learn : MessageItem = { title : 'Community vs. Pro' } ;
520
+ const learn : MessageItem | undefined = isWalkthroughSupported ( )
521
+ ? { title : 'Community vs. Pro' }
522
+ : undefined ;
520
523
const confirm : MessageItem = { title : 'Continue' , isCloseAffordance : true } ;
521
524
const result = await window . showInformationMessage (
522
525
`You are now on ${ actual . name } .` ,
@@ -525,7 +528,7 @@ export class SubscriptionService implements Disposable {
525
528
detail : 'You only have access to Pro features on publicly-hosted repos. For full access to all Pro features, please upgrade to GitLens Pro.' ,
526
529
} ,
527
530
upgrade ,
528
- learn ,
531
+ ... ( learn ? [ learn ] : [ ] ) ,
529
532
confirm ,
530
533
) ;
531
534
0 commit comments