Skip to content

Commit e9c234f

Browse files
Makes Launchpad view respond to cloud integration sync
Closes #3849
1 parent 5a73d49 commit e9c234f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/plus/integrations/integrationService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export class IntegrationService implements Disposable {
5656
return this._onDidChangeConnectionState.event;
5757
}
5858

59+
private readonly _onDidSyncCloudIntegrations = new EventEmitter<void>();
60+
get onDidSyncCloudIntegrations(): Event<void> {
61+
return this._onDidSyncCloudIntegrations.event;
62+
}
63+
5964
private readonly _connectedCache = new Set<string>();
6065
private readonly _disposable: Disposable;
6166
private _integrations = new Map<IntegrationKey, Integration>();
@@ -112,6 +117,7 @@ export class IntegrationService implements Disposable {
112117
});
113118
}
114119

120+
this._onDidSyncCloudIntegrations.fire();
115121
return connectedIntegrations;
116122
}
117123

src/views/launchpadView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export class LaunchpadView extends ViewBase<'launchpad', LaunchpadViewNode, Laun
247247
this._disposable = Disposable.from(
248248
this.container.integrations.onDidChangeConnectionState(() => this.refresh(), this),
249249
this.container.launchpad.onDidRefresh(() => this.refresh(), this),
250+
this.container.integrations.onDidSyncCloudIntegrations(() => this.refresh(), this),
250251
);
251252
}
252253

0 commit comments

Comments
 (0)