File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/vs/workbench/contrib/accountEntitlements/browser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ class EntitlementsContribution extends Disposable implements IWorkbenchContribut
151
151
return [ true , orgs && orgs . length > 0 ? ( orgs [ 0 ] . name ? orgs [ 0 ] . name : orgs [ 0 ] . login ) : undefined ] ;
152
152
}
153
153
154
- private async enableEntitlements ( session : AuthenticationSession ) {
154
+ private async enableEntitlements ( session : AuthenticationSession | undefined ) {
155
+ if ( ! session ) {
156
+ return ;
157
+ }
158
+
155
159
const isInternal = isInternalTelemetry ( this . productService , this . configurationService ) ;
156
160
const showAccountsBadge = this . configurationService . inspect < boolean > ( accountsBadgeConfigKey ) . value ?? false ;
157
161
const showWelcomeView = this . configurationService . inspect < boolean > ( chatWelcomeViewConfigKey ) . value ?? false ;
You can’t perform that action at this time.
0 commit comments