Fixed Icons missing from extension trees with resource uris from upstream

This commit is contained in:
chriswang521 2023-04-07 09:55:37 +08:00
parent d9ed948fdb
commit 4ee342fce7
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
private shouldHideResourceLabelIcon(iconUrl: URI | undefined, icon: ThemeIcon | undefined): boolean {
// We always hide the resource label in favor of the iconUrl when it's provided.
// When `ThemeIcon` is provided, we hide the resource label icon in favor of it only if it's a not a file icon.
return !!iconUrl || !this.isFileKindThemeIcon(icon);
return (!!iconUrl || (!!icon && !this.isFileKindThemeIcon(icon)));
}
private shouldShowThemeIcon(hasResource: boolean, icon: ThemeIcon | undefined): icon is ThemeIcon {