diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts index 1b409409e61a4..3b18b5a7e6fc1 100644 --- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts +++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts @@ -242,6 +242,7 @@ export class GettingStartedPage extends EditorPane { } })); + this._register(this.gettingStartedService.onDidAddBuiltInWalkthrough(rerender)); this._register(this.gettingStartedService.onDidAddWalkthrough(rerender)); this._register(this.gettingStartedService.onDidRemoveWalkthrough(rerender)); diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts index e2b36756483a6..1908c1a35f232 100644 --- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts +++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts @@ -97,6 +97,7 @@ export interface IWalkthroughsService { readonly onDidRemoveWalkthrough: Event; readonly onDidChangeWalkthrough: Event; readonly onDidProgressStep: Event; + readonly onDidAddBuiltInWalkthrough: Event; readonly installedExtensionsRegistered: Promise; @@ -134,6 +135,9 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ private readonly _onDidProgressStep = new Emitter(); readonly onDidProgressStep: Event = this._onDidProgressStep.event; + private readonly _onDidAddBuiltInWalkthrough = new Emitter(); + readonly onDidAddBuiltInWalkthrough: Event = this._onDidAddBuiltInWalkthrough.event; + private memento: Memento; private stepProgress: Record; @@ -255,6 +259,8 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ }) }); }); + + this._onDidAddBuiltInWalkthrough.fire(); } private updateWalkthroughContent(walkthrough: BuiltinGettingStartedCategory, experimentTreatment: WalkthroughTreatment): BuiltinGettingStartedCategory {