Skip to content

Commit 93cedcc

Browse files
Tweaks to note navigator to improve hierarchy layout
1 parent cad0c38 commit 93cedcc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/foam-vscode/src/features/panels/utils/folder-tree-provider.ts

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export interface Folder<T> {
1919
export class FolderTreeItem<T> extends vscode.TreeItem {
2020
collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;
2121
contextValue = 'folder';
22-
iconPath = new vscode.ThemeIcon('folder');
2322

2423
constructor(
2524
public node: Folder<T>,

packages/foam-vscode/src/features/panels/utils/tree-view-utils.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export class UriTreeItem extends BaseTreeItem {
4343
}
4444

4545
export class ResourceTreeItem extends UriTreeItem {
46+
iconPath = vscode.ThemeIcon.File;
47+
contextValue = 'foam.resource';
48+
4649
constructor(
4750
public readonly resource: Resource,
4851
private readonly workspace: FoamWorkspace,
@@ -62,8 +65,6 @@ export class ResourceTreeItem extends UriTreeItem {
6265
title: 'Go to location',
6366
};
6467
this.resourceUri = toVsCodeUri(resource.uri);
65-
this.iconPath = vscode.ThemeIcon.File;
66-
this.contextValue = 'foam.resource';
6768
}
6869

6970
async resolveTreeItem(): Promise<ResourceTreeItem> {

0 commit comments

Comments
 (0)