File tree 2 files changed +3
-3
lines changed
packages/foam-vscode/src/features/panels/utils
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ export interface Folder<T> {
19
19
export class FolderTreeItem < T > extends vscode . TreeItem {
20
20
collapsibleState = vscode . TreeItemCollapsibleState . Collapsed ;
21
21
contextValue = 'folder' ;
22
- iconPath = new vscode . ThemeIcon ( 'folder' ) ;
23
22
24
23
constructor (
25
24
public node : Folder < T > ,
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ export class UriTreeItem extends BaseTreeItem {
43
43
}
44
44
45
45
export class ResourceTreeItem extends UriTreeItem {
46
+ iconPath = vscode . ThemeIcon . File ;
47
+ contextValue = 'foam.resource' ;
48
+
46
49
constructor (
47
50
public readonly resource : Resource ,
48
51
private readonly workspace : FoamWorkspace ,
@@ -62,8 +65,6 @@ export class ResourceTreeItem extends UriTreeItem {
62
65
title : 'Go to location' ,
63
66
} ;
64
67
this . resourceUri = toVsCodeUri ( resource . uri ) ;
65
- this . iconPath = vscode . ThemeIcon . File ;
66
- this . contextValue = 'foam.resource' ;
67
68
}
68
69
69
70
async resolveTreeItem ( ) : Promise < ResourceTreeItem > {
You can’t perform that action at this time.
0 commit comments