Skip to content

Commit

Permalink
Makes Launchpad view respond to cloud integration sync
Browse files Browse the repository at this point in the history
Closes #3849
  • Loading branch information
axosoft-ramint committed Dec 10, 2024
1 parent 5a73d49 commit e9c234f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plus/integrations/integrationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export class IntegrationService implements Disposable {
return this._onDidChangeConnectionState.event;
}

private readonly _onDidSyncCloudIntegrations = new EventEmitter<void>();
get onDidSyncCloudIntegrations(): Event<void> {
return this._onDidSyncCloudIntegrations.event;
}

private readonly _connectedCache = new Set<string>();
private readonly _disposable: Disposable;
private _integrations = new Map<IntegrationKey, Integration>();
Expand Down Expand Up @@ -112,6 +117,7 @@ export class IntegrationService implements Disposable {
});
}

this._onDidSyncCloudIntegrations.fire();
return connectedIntegrations;
}

Expand Down
1 change: 1 addition & 0 deletions src/views/launchpadView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export class LaunchpadView extends ViewBase<'launchpad', LaunchpadViewNode, Laun
this._disposable = Disposable.from(
this.container.integrations.onDidChangeConnectionState(() => this.refresh(), this),
this.container.launchpad.onDidRefresh(() => this.refresh(), this),
this.container.integrations.onDidSyncCloudIntegrations(() => this.refresh(), this),
);
}

Expand Down

0 comments on commit e9c234f

Please sign in to comment.