@@ -226,13 +226,12 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
226
226
installed . forEach ( ext => this . progressByEvent ( `extensionInstalled:${ ext . identifier . id . toLowerCase ( ) } ` ) ) ;
227
227
} ) ;
228
228
229
- this . _register ( this . extensionManagementService . onDidInstallExtensions ( async ( result ) => {
230
- const hadLastFoucs = await this . hostService . hadLastFocus ( ) ;
229
+ this . _register ( this . extensionManagementService . onDidInstallExtensions ( ( result ) => {
231
230
for ( const e of result ) {
232
231
const skipWalkthrough = e ?. context ?. [ EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT ] || e ?. context ?. [ EXTENSION_INSTALL_DEP_PACK_CONTEXT ] ;
233
232
// If the window had last focus and the install didn't specify to skip the walkthrough
234
233
// Then add it to the sessionInstallExtensions to be opened
235
- if ( hadLastFoucs && ! skipWalkthrough ) {
234
+ if ( ! skipWalkthrough ) {
236
235
this . sessionInstalledExtensions . add ( e . identifier . id . toLowerCase ( ) ) ;
237
236
}
238
237
this . progressByEvent ( `extensionInstalled:${ e . identifier . id . toLowerCase ( ) } ` ) ;
@@ -408,7 +407,8 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
408
407
409
408
this . storageService . store ( walkthroughMetadataConfigurationKey , JSON . stringify ( [ ...this . metadata . entries ( ) ] ) , StorageScope . PROFILE , StorageTarget . USER ) ;
410
409
411
- if ( sectionToOpen && this . configurationService . getValue < string > ( 'workbench.welcomePage.walkthroughs.openOnInstall' ) ) {
410
+ const hadLastFoucs = await this . hostService . hadLastFocus ( ) ;
411
+ if ( hadLastFoucs && sectionToOpen && this . configurationService . getValue < string > ( 'workbench.welcomePage.walkthroughs.openOnInstall' ) ) {
412
412
type GettingStartedAutoOpenClassification = {
413
413
owner : 'lramos15' ;
414
414
comment : 'When a walkthrthrough is opened upon extension installation' ;
0 commit comments