@@ -129,6 +129,20 @@ async function notifyOnNewGitLensVersion(context: ExtensionContext, version: str
129
129
130
130
const previousVersion = context . globalState . get < string > ( WorkspaceState . GitLensVersion ) ;
131
131
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
+
132
146
await context . globalState . update ( WorkspaceState . GitLensVersion , version ) ;
133
147
134
148
if ( previousVersion ) {
@@ -139,7 +153,9 @@ async function notifyOnNewGitLensVersion(context: ExtensionContext, version: str
139
153
140
154
const result = await window . showInformationMessage ( `GitLens has been updated to v${ version } ` , 'View Release Notes' , `Don't Show Again` ) ;
141
155
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' ) ) ;
143
159
}
144
160
else if ( result === `Don't Show Again` ) {
145
161
context . globalState . update ( WorkspaceState . SuppressUpdateNotice , true ) ;
0 commit comments