We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f00d298 commit 8545d8cCopy full SHA for 8545d8c
src/plus/gk/account/organizationService.ts
@@ -28,12 +28,10 @@ export class OrganizationService implements Disposable {
28
private readonly connection: ServerConnection,
29
) {
30
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),
+ once(container.onReady)(async () => {
+ const orgId = await this.getActiveOrganizationId();
+ void this.updateOrganizationPermissions(orgId);
+ }),
37
container.subscription.onDidChange(this.onSubscriptionChanged, this),
38
);
39
}
0 commit comments