Skip to content

Commit 8545d8c

Browse files
committed
Fixes initial context keys for patches and AI features
1 parent f00d298 commit 8545d8c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/plus/gk/account/organizationService.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ export class OrganizationService implements Disposable {
2828
private readonly connection: ServerConnection,
2929
) {
3030
this._disposable = Disposable.from(
31-
once(onDidChangeContext)(async key => {
32-
if (key === 'gitlens:plus') {
33-
const orgId = await this.getActiveOrganizationId();
34-
void this.updateOrganizationPermissions(orgId);
35-
}
36-
}, this),
31+
once(container.onReady)(async () => {
32+
const orgId = await this.getActiveOrganizationId();
33+
void this.updateOrganizationPermissions(orgId);
34+
}),
3735
container.subscription.onDidChange(this.onSubscriptionChanged, this),
3836
);
3937
}

0 commit comments

Comments
 (0)