Fix incorrect icon hiding for files in tree view

This commit is contained in:
Alex Ross
2020-12-29 17:12:25 +01:00
parent 5dbfe32be3
commit ebb316a288
@@ -949,7 +949,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
templateData.resourceLabel.setResource({ name: label, description, resource: labelResource }, {
fileKind: this.getFileKind(node),
title,
hideIcon: !!iconUrl || !!node.themeIcon,
hideIcon: !!iconUrl || (!!node.themeIcon && !this.isFileKindThemeIcon(node.themeIcon)),
fileDecorations,
extraClasses: ['custom-view-tree-node-item-resourceLabel'],
matches: matches ? matches : createMatches(element.filterData),