@@ -1524,7 +1524,6 @@ export class SubscriptionService implements Disposable {
1524
1524
const {
1525
1525
account,
1526
1526
plan : { effective } ,
1527
- state,
1528
1527
} = this . _subscription ;
1529
1528
1530
1529
if ( effective . id === SubscriptionPlanId . Community ) {
@@ -1534,7 +1533,9 @@ export class SubscriptionService implements Disposable {
1534
1533
}
1535
1534
1536
1535
const trial = isSubscriptionTrial ( this . _subscription ) ;
1537
- if ( ! trial && account ?. verified !== false ) {
1536
+ const trialEligible = this . _subscription . state === SubscriptionState . ProTrialReactivationEligible ;
1537
+
1538
+ if ( ! ( trial || trialEligible ) && account ?. verified !== false ) {
1538
1539
this . _statusBarSubscription ?. dispose ( ) ;
1539
1540
this . _statusBarSubscription = undefined ;
1540
1541
return ;
@@ -1543,42 +1544,42 @@ export class SubscriptionService implements Disposable {
1543
1544
if ( this . _statusBarSubscription == null ) {
1544
1545
this . _statusBarSubscription = window . createStatusBarItem (
1545
1546
'gitlens.plus.subscription' ,
1546
- StatusBarAlignment . Left ,
1547
- 1 ,
1547
+ StatusBarAlignment . Right ,
1548
1548
) ;
1549
1549
}
1550
1550
1551
- this . _statusBarSubscription . name = 'GitLens Subscription' ;
1551
+ this . _statusBarSubscription . name = 'GitLens Pro' ;
1552
+ this . _statusBarSubscription . text = '$(gitlens-gitlens)' ;
1552
1553
this . _statusBarSubscription . command = Commands . ShowAccountView ;
1554
+ this . _statusBarSubscription . backgroundColor = undefined ;
1553
1555
1554
1556
if ( account ?. verified === false ) {
1555
- this . _statusBarSubscription . text = `$(warning) ${ effective . name } (Unverified )` ;
1557
+ this . _statusBarSubscription . text = `$(gitlens-gitlens)\u00a0\u00a0$(warning )` ;
1556
1558
this . _statusBarSubscription . backgroundColor = new ThemeColor (
1557
1559
'statusBarItem.warningBackground' satisfies CoreColors ,
1558
1560
) ;
1559
1561
this . _statusBarSubscription . tooltip = new MarkdownString (
1560
1562
trial
1561
- ? `**Please verify your email**\n\nYou must verify your email before you can start your **${ effective . name } ** trial.\n\nClick for details `
1562
- : `**Please verify your email**\n\nYou must verify your email before you can use Pro features on privately-hosted repos.\n\nClick for details ` ,
1563
+ ? `**GitLens Pro — verify your email**\n\nYou must verify your email before you can start your **${ effective . name } ** trial.`
1564
+ : `**GitLens Pro — verify your email**\n\nYou must verify your email before you can use Pro features on privately-hosted repos.` ,
1563
1565
true ,
1564
1566
) ;
1565
1567
} else {
1566
- const remaining = getSubscriptionTimeRemaining ( this . _subscription , 'days' ) ;
1567
- const isReactivatedTrial = state === SubscriptionState . ProTrial && effective . trialReactivationCount > 0 ;
1568
+ let tooltip ;
1569
+ if ( trialEligible ) {
1570
+ tooltip = `**GitLens Pro — reactivate your Pro trial**\n\nExperience full access to all the [new Pro features](${
1571
+ urls . releaseNotes
1572
+ } ) — free for another ${ pluralize ( 'day' , proTrialLengthInDays ) } .`;
1573
+ } else if ( trial ) {
1574
+ const remaining = getSubscriptionTimeRemaining ( this . _subscription , 'days' ) ?? 0 ;
1575
+ tooltip = `**GitLens Pro — trial**\n\nYou now have full access to all GitLens Pro features for ${ pluralize (
1576
+ 'day' ,
1577
+ remaining ,
1578
+ { infix : ' more ' } ,
1579
+ ) } .`;
1580
+ }
1568
1581
1569
- this . _statusBarSubscription . text = `${ effective . name } (Trial)` ;
1570
- this . _statusBarSubscription . tooltip = new MarkdownString (
1571
- `${
1572
- isReactivatedTrial
1573
- ? `[See what's new](${ urls . releaseNotes } ) with ${ pluralize ( 'day' , remaining ?? 0 , {
1574
- infix : ' more ' ,
1575
- } ) } in your **${ effective . name } ** trial.`
1576
- : `You have ${ pluralize ( 'day' , remaining ?? 0 ) } remaining in your **${ effective . name } ** trial.`
1577
- } Once your trial ends, you'll need [GitLens Pro](command:gitlens.openWalkthrough?%7B%22step%22%3A%22pro-trial%22,%22source%22%3A%22prompt%22%7D) for full access to Pro features.\n\nYour trial also includes access to the [GitKraken DevEx platform](${
1578
- urls . platform
1579
- } ), unleashing powerful Git visualization & productivity capabilities everywhere you work: IDE, desktop, browser, and terminal.`,
1580
- true ,
1581
- ) ;
1582
+ this . _statusBarSubscription . tooltip = new MarkdownString ( tooltip , true ) ;
1582
1583
}
1583
1584
1584
1585
this . _statusBarSubscription . show ( ) ;
0 commit comments