Skip to content

Commit b265e08

Browse files
authored
Icons missing from extension trees with resource uris (#152039) (#152050)
Fixes #152036
1 parent e15ae16 commit b265e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/browser/parts/views/treeView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
10871087
private shouldHideResourceLabelIcon(iconUrl: URI | undefined, icon: ThemeIcon | undefined): boolean {
10881088
// We always hide the resource label in favor of the iconUrl when it's provided.
10891089
// When `ThemeIcon` is provided, we hide the resource label icon in favor of it only if it's a not a file icon.
1090-
return !!iconUrl || !this.isFileKindThemeIcon(icon);
1090+
return (!!iconUrl || (!!icon && !this.isFileKindThemeIcon(icon)));
10911091
}
10921092

10931093
private shouldShowThemeIcon(hasResource: boolean, icon: ThemeIcon | undefined): icon is ThemeIcon {

0 commit comments

Comments
 (0)