Skip to content

Commit 30d9c6c

Browse files
authored
Icons missing from extension trees with resource uris (#152039)
Fixes #152036
1 parent ab220b2 commit 30d9c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)