Skip to content

Commit ad4295b

Browse files
authored
fix loading cached remote icons (microsoft#163961)
1 parent c618860 commit ad4295b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/browser/parts/activitybar/activitybarPart.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,9 @@ export class ActivitybarPart extends Part implements IPaneCompositeSelectorPart
966966
cachedViewContainer.name = placeholderViewContainer.name;
967967
cachedViewContainer.icon = placeholderViewContainer.themeIcon ? placeholderViewContainer.themeIcon :
968968
placeholderViewContainer.iconUrl ? URI.revive(placeholderViewContainer.iconUrl) : undefined;
969+
if (URI.isUri(cachedViewContainer.icon) && this.environmentService.remoteAuthority) {
970+
cachedViewContainer.icon = undefined; /* Donot cache uri icons with remote connection */
971+
}
969972
cachedViewContainer.views = placeholderViewContainer.views;
970973
cachedViewContainer.isBuiltin = placeholderViewContainer.isBuiltin;
971974
}

0 commit comments

Comments
 (0)