diff --git a/src/vs/workbench/browser/parts/views/treeView.ts b/src/vs/workbench/browser/parts/views/treeView.ts index 91df2786f62..345a4f9e5a2 100644 --- a/src/vs/workbench/browser/parts/views/treeView.ts +++ b/src/vs/workbench/browser/parts/views/treeView.ts @@ -65,6 +65,7 @@ import { ILogService } from 'vs/platform/log/common/log'; import { Mimes } from 'vs/base/common/mime'; import { IActivityService, NumberBadge } from 'vs/workbench/services/activity/common/activity'; import { IDataTransfer } from 'vs/workbench/common/dnd'; +import { ThemeSettings } from 'vs/workbench/services/themes/common/workbenchThemeService'; export class TreeViewPane extends ViewPane { @@ -1018,13 +1019,14 @@ class TreeRenderer extends Disposable implements ITreeRenderer('explorer.decorations'); const labelResource = resource ? resource : URI.parse('missing:_icon_resource'); templateData.resourceLabel.setResource({ name: label, description, resource: labelResource }, { fileKind: this.getFileKind(node), title, - hideIcon: !!iconUrl || !!node.themeIcon, + hideIcon: !!iconUrl || this.shouldShowThemeIcon(!!resource, node.themeIcon), fileDecorations, extraClasses: ['custom-view-tree-node-item-resourceLabel'], matches: matches ? matches : createMatches(element.filterData), @@ -1047,7 +1049,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer