Skip to content

Commit e837c3b

Browse files
authored
do not initialise if disposed (microsoft#196745)
1 parent f40755c commit e837c3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/browser/parts/globalCompositeBar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ export class AccountsActivityActionViewItem extends AbstractGlobalActivityAction
351351
// Resolving the menu doesn't need to happen immediately, so we can wait until after the workbench has been restored
352352
// and only run this when the system is idle.
353353
await this.lifecycleService.when(LifecyclePhase.Restored);
354+
if (this._store.isDisposed) {
355+
return;
356+
}
354357
const disposable = this._register(runWhenIdle(async () => {
355358
await this.doInitialize();
356359
disposable.dispose();

0 commit comments

Comments
 (0)