Skip to content

Commit 39111ad

Browse files
authored
Explicitly set icons in DVC Tracked tree (#1869)
1 parent 728c86b commit 39111ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/src/fileSystem/tree.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { relative } from 'path'
22
import {
33
Event,
4+
ThemeIcon,
45
TreeDataProvider,
56
TreeItem,
67
TreeItemCollapsibleState,
@@ -93,8 +94,8 @@ export class TrackedExplorerTree
9394
? TreeItemCollapsibleState.Collapsed
9495
: TreeItemCollapsibleState.None
9596
)
96-
9797
treeItem.contextValue = this.getContextValue(resourceUri, isDirectory)
98+
treeItem.iconPath = isDirectory ? ThemeIcon.Folder : ThemeIcon.File
9899

99100
if (!isDirectory && treeItem.contextValue !== 'virtual') {
100101
treeItem.command = {

0 commit comments

Comments
 (0)