forked from openkylin/kylin-code
Fixed Icons missing from extension trees with resource uris from upstream
This commit is contained in:
parent
d9ed948fdb
commit
4ee342fce7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue