@ -2,6 +2,7 @@ import type { MessageItem } from 'vscode';
import { ConfigurationTarget , window } from 'vscode' ;
import { configuration , SuppressedMessages } from './configuration' ;
import { Commands } from './constants' ;
import type { Container } from './container' ;
import type { GitCommit } from './git/models/commit' ;
import { Logger } from './logger' ;
import { executeCommand } from './system/command' ;
@ -172,6 +173,24 @@ export function showIntegrationRequestTimedOutWarningMessage(providerName: strin
) ;
}
export async function showProDiscountNotification ( container : Container ) : Promise < void > {
if ( container . storage . get ( 'plus:discountNotificationShown' , false ) ) return ;
void container . storage . store ( 'plus:discountNotificationShown' , true ) ;
const upgrade : MessageItem = { title : 'Upgrade to Pro' } ;
const result = await showMessage (
'info' ,
'GitLens Pro introductory pricing, up to a 60% discount, goes away tomorrow. Upgrade to GitLens Pro now to access [GitLens+ features](command:gitlens.plus.learn) on private repos at a reduced rate.' ,
undefined ,
undefined ,
upgrade ,
) ;
if ( result === upgrade ) {
void container . subscription . purchase ( ) ;
}
}
export async function showWhatsNewMessage ( version : string ) {
const whatsnew = { title : "See What's New" } ;
const result = await showMessage (