Skip to content

Commit

Permalink
Icons missing from extension trees with resource uris (#152039) (#152050
Browse files Browse the repository at this point in the history
)

Fixes #152036
  • Loading branch information
alexr00 authored Jun 14, 2022
1 parent e15ae16 commit b265e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/views/treeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,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 {
Expand Down

0 comments on commit b265e08

Please sign in to comment.