@@ -129,6 +129,20 @@ async function notifyOnNewGitLensVersion(context: ExtensionContext, version: str
129129
130130 const previousVersion = context . globalState . get < string > ( WorkspaceState . GitLensVersion ) ;
131131
132+ if ( ! context . globalState . get ( WorkspaceState . SuppressWelcomeNotice , false ) ) {
133+ await context . globalState . update ( WorkspaceState . SuppressWelcomeNotice , true ) ;
134+
135+ if ( previousVersion === undefined ) {
136+ const result = await window . showInformationMessage ( `Thank you for choosing GitLens! GitLens is powerful, feature rich, and highly configurable, so please be sure to view the docs and tailor it to suit your needs.` , 'View Docs' ) ;
137+ if ( result === 'View Docs' ) {
138+ // TODO: Reset before release
139+ // commands.executeCommand(BuiltInCommands.Open, Uri.parse('https://marketplace.visualstudio.com/items/eamodio.gitlens'));
140+ commands . executeCommand ( BuiltInCommands . Open , Uri . parse ( 'https://github.com/eamodio/vscode-gitlens/blob/develop/README.md' ) ) ;
141+ }
142+ return ;
143+ }
144+ }
145+
132146 await context . globalState . update ( WorkspaceState . GitLensVersion , version ) ;
133147
134148 if ( previousVersion ) {
@@ -139,7 +153,9 @@ async function notifyOnNewGitLensVersion(context: ExtensionContext, version: str
139153
140154 const result = await window . showInformationMessage ( `GitLens has been updated to v${ version } ` , 'View Release Notes' , `Don't Show Again` ) ;
141155 if ( result === 'View Release Notes' ) {
142- commands . executeCommand ( BuiltInCommands . Open , Uri . parse ( 'https://marketplace.visualstudio.com/items/eamodio.gitlens/changelog' ) ) ;
156+ // TODO: Reset before release
157+ // commands.executeCommand(BuiltInCommands.Open, Uri.parse('https://marketplace.visualstudio.com/items/eamodio.gitlens/changelog'));
158+ commands . executeCommand ( BuiltInCommands . Open , Uri . parse ( 'https://github.com/eamodio/vscode-gitlens/blob/develop/CHANGELOG.md' ) ) ;
143159 }
144160 else if ( result === `Don't Show Again` ) {
145161 context . globalState . update ( WorkspaceState . SuppressUpdateNotice , true ) ;
0 commit comments