Skip to content

Commit 46b1e6c

Browse files
Fixes Launchpad indicator not waiting for the container
1 parent e4580ae commit 46b1e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plus/launchpad/launchpadIndicator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { HostingIntegrationId } from '../../constants.integrations';
88
import type { Container } from '../../container';
99
import { executeCommand, registerCommand } from '../../system/-webview/command';
1010
import { configuration } from '../../system/-webview/configuration';
11+
import { once } from '../../system/event';
1112
import { groupByMap } from '../../system/iterable';
1213
import { wait } from '../../system/promise';
1314
import { pluralize } from '../../system/string';
@@ -41,10 +42,9 @@ export class LaunchpadIndicator implements Disposable {
4142
provider.onDidRefresh(this.onLaunchpadRefreshed, this),
4243
configuration.onDidChange(this.onConfigurationChanged, this),
4344
container.integrations.onDidChangeConnectionState(this.onConnectedIntegrationsChanged, this),
45+
once(container.onReady)(this.onReady, this),
4446
...this.registerCommands(),
4547
);
46-
47-
void this.onReady();
4848
}
4949

5050
dispose() {

0 commit comments

Comments
 (0)