@@ -170,7 +170,7 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
170
170
this . container . subscription . onDidChange ( this . onSubscriptionChanged , this ) ,
171
171
onDidChangeContext ( this . onContextChanged , this ) ,
172
172
this . container . integrations . onDidChange ( this . onIntegrationsChanged , this ) ,
173
- this . container . walkthrough . onDidChangeProgress ( this . onWalkthroughProgressChanged , this ) ,
173
+ this . container . walkthrough ? .onDidChangeProgress ( this . onWalkthroughProgressChanged , this ) ?? emptyDisposable ,
174
174
configuration . onDidChange ( this . onDidChangeConfig , this ) ,
175
175
this . container . launchpad . onDidChange ( this . onLaunchpadChanged , this ) ,
176
176
this . container . ai . onDidChangeModel ( this . onAIModelChanged , this ) ,
@@ -729,7 +729,9 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
729
729
}
730
730
731
731
private getWalkthroughDismissed ( ) {
732
- return this . container . storage . get ( 'home:walkthrough:dismissed' ) ?? false ;
732
+ return (
733
+ this . container . walkthrough == null || ( this . container . storage . get ( 'home:walkthrough:dismissed' ) ?? false )
734
+ ) ;
733
735
}
734
736
735
737
private getPreviewCollapsed ( ) {
@@ -806,13 +808,14 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
806
808
integrations : integrations ,
807
809
ai : ai ,
808
810
hasAnyIntegrationConnected : anyConnected ,
809
- walkthroughProgress : ! this . getWalkthroughDismissed ( )
810
- ? {
811
- allCount : this . container . walkthrough . walkthroughSize ,
812
- doneCount : this . container . walkthrough . doneCount ,
813
- progress : this . container . walkthrough . progress ,
814
- }
815
- : undefined ,
811
+ walkthroughProgress :
812
+ ! this . getWalkthroughDismissed ( ) && this . container . walkthrough != null
813
+ ? {
814
+ allCount : this . container . walkthrough . walkthroughSize ,
815
+ doneCount : this . container . walkthrough . doneCount ,
816
+ progress : this . container . walkthrough . progress ,
817
+ }
818
+ : undefined ,
816
819
previewEnabled : this . getPreviewEnabled ( ) ,
817
820
newInstall : getContext ( 'gitlens:install:new' , false ) ,
818
821
amaBannerCollapsed : this . getAmaBannerCollapsed ( ) ,
@@ -1205,6 +1208,8 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
1205
1208
}
1206
1209
1207
1210
private notifyDidChangeProgress ( ) {
1211
+ if ( this . container . walkthrough == null ) return ;
1212
+
1208
1213
void this . host . notify ( DidChangeWalkthroughProgress , {
1209
1214
allCount : this . container . walkthrough . walkthroughSize ,
1210
1215
doneCount : this . container . walkthrough . doneCount ,
0 commit comments