From addb6b9b53a5095ebde7036da50fab766aa011b6 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Fri, 15 Jan 2021 10:29:41 +0100 Subject: [PATCH] :lipstick: --- .../browser/parts/activitybar/activitybarPart.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/vs/workbench/browser/parts/activitybar/activitybarPart.ts b/src/vs/workbench/browser/parts/activitybar/activitybarPart.ts index af45b2bd3de..3e1fa6cbcc4 100644 --- a/src/vs/workbench/browser/parts/activitybar/activitybarPart.ts +++ b/src/vs/workbench/browser/parts/activitybar/activitybarPart.ts @@ -135,14 +135,8 @@ export class ActivitybarPart extends Part implements IActivityBarService { super(Parts.ACTIVITYBAR_PART, { hasTitle: false }, themeService, storageService, layoutService); for (const cachedViewContainer of this.cachedViewContainers) { - if ( - environmentService.remoteAuthority || // In remote window, hide activity bar entries until registered. - this.shouldBeHidden(cachedViewContainer.id, cachedViewContainer) - ) { - cachedViewContainer.visible = false; - } + cachedViewContainer.visible = !this.shouldBeHidden(cachedViewContainer.id, cachedViewContainer); } - this.compositeBar = this.createCompositeBar(); this.onDidRegisterViewContainers(this.getViewContainers()); @@ -791,8 +785,8 @@ export class ActivitybarPart extends Part implements IActivityBarService { } } - // Check Cache - if (!this.hasExtensionsRegistered) { + // Check cache only in desktop local window and if extensions are not yet registered + if (!this.environmentService.remoteAuthority && !this.hasExtensionsRegistered) { cachedViewContainer = cachedViewContainer || this.cachedViewContainers.find(({ id }) => id === viewContainerId); // Show builtin ViewContainer if not registered yet -- GitLab