Skip to content

Commit f69482e

Browse files
authored
fix loading cached remote icons (microsoft#164004)
fix loading cached remote icons (microsoft#163961)
1 parent 43bde84 commit f69482e

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
@@ -964,6 +964,9 @@ export class ActivitybarPart extends Part implements IPaneCompositeSelectorPart
964964
cachedViewContainer.name = placeholderViewContainer.name;
965965
cachedViewContainer.icon = placeholderViewContainer.themeIcon ? placeholderViewContainer.themeIcon :
966966
placeholderViewContainer.iconUrl ? URI.revive(placeholderViewContainer.iconUrl) : undefined;
967+
if (URI.isUri(cachedViewContainer.icon) && this.environmentService.remoteAuthority) {
968+
cachedViewContainer.icon = undefined; /* Donot cache uri icons with remote connection */
969+
}
967970
cachedViewContainer.views = placeholderViewContainer.views;
968971
cachedViewContainer.isBuiltin = placeholderViewContainer.isBuiltin;
969972
}

0 commit comments

Comments
 (0)