Skip to content

Commit

Permalink
Explicitly set icons in DVC Tracked tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Jun 10, 2022
1 parent 728c86b commit 6dfbe6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/src/fileSystem/tree.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { relative } from 'path'
import {
Event,
ThemeIcon,
TreeDataProvider,
TreeItem,
TreeItemCollapsibleState,
Expand Down Expand Up @@ -93,8 +94,8 @@ export class TrackedExplorerTree
? TreeItemCollapsibleState.Collapsed
: TreeItemCollapsibleState.None
)

treeItem.contextValue = this.getContextValue(resourceUri, isDirectory)
treeItem.iconPath = isDirectory ? ThemeIcon.Folder : ThemeIcon.File

if (!isDirectory && treeItem.contextValue !== 'virtual') {
treeItem.command = {
Expand Down

0 comments on commit 6dfbe6d

Please sign in to comment.