@@ -186,7 +186,7 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
186186 ) ;
187187 }
188188
189- void showWelcomeOrWhatsNew ( container , gitlensVersion , prerelease , previousVersion ) ;
189+ void showWhatsNew ( container , gitlensVersion , prerelease , previousVersion ) ;
190190
191191 void storage . store ( prerelease ? 'preVersion' : 'version' , gitlensVersion ) ;
192192
@@ -316,7 +316,7 @@ function registerBuiltInActionRunners(container: Container): void {
316316 ) ;
317317}
318318
319- async function showWelcomeOrWhatsNew (
319+ async function showWhatsNew (
320320 container : Container ,
321321 version : string ,
322322 prerelease : boolean ,
@@ -325,30 +325,6 @@ async function showWelcomeOrWhatsNew(
325325 if ( previousVersion == null ) {
326326 Logger . log ( `GitLens first-time install; window.focused=${ window . state . focused } ` ) ;
327327
328- if ( configuration . get ( 'showWelcomeOnInstall' ) === false ) return ;
329-
330- if ( window . state . focused ) {
331- await container . storage . delete ( 'pendingWelcomeOnFocus' ) ;
332- await executeCommand ( Commands . ShowWelcomePage ) ;
333- } else {
334- // Save pending on window getting focus
335- await container . storage . store ( 'pendingWelcomeOnFocus' , true ) ;
336- const disposable = window . onDidChangeWindowState ( e => {
337- if ( ! e . focused ) return ;
338-
339- disposable . dispose ( ) ;
340-
341- // If the window is now focused and we are pending the welcome, clear the pending state and show the welcome
342- if ( container . storage . get ( 'pendingWelcomeOnFocus' ) === true ) {
343- void container . storage . delete ( 'pendingWelcomeOnFocus' ) ;
344- if ( configuration . get ( 'showWelcomeOnInstall' ) ) {
345- void executeCommand ( Commands . ShowWelcomePage ) ;
346- }
347- }
348- } ) ;
349- container . context . subscriptions . push ( disposable ) ;
350- }
351-
352328 return ;
353329 }
354330
0 commit comments