From 4be0a42059433795e73390ce87cce94173324ea1 Mon Sep 17 00:00:00 2001 From: Isaac Poole <55164207+isfopo@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:53:54 -0400 Subject: [PATCH 1/2] de-structures args --- src/EnvironmentTreeviewProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EnvironmentTreeviewProvider.ts b/src/EnvironmentTreeviewProvider.ts index 8541e2b..39faa9a 100644 --- a/src/EnvironmentTreeviewProvider.ts +++ b/src/EnvironmentTreeviewProvider.ts @@ -101,9 +101,9 @@ export class EnvironmentTreeviewProvider ); fileData = files.map( - (file, index) => + ([path], index) => new EnvironmentFileTreeItem( - file[0], + path, fileUris[index], parseEnvironmentContent(fileContentStrings[index]) ) From 1bc255d4e7199adb5d37f15681f2f120cf6fea74 Mon Sep 17 00:00:00 2001 From: Isaac Poole <55164207+isfopo@users.noreply.github.com> Date: Thu, 11 Jul 2024 00:25:35 -0400 Subject: [PATCH 2/2] adds icon --- src/EnvironmentTreeviewProvider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EnvironmentTreeviewProvider.ts b/src/EnvironmentTreeviewProvider.ts index 39faa9a..3f509c8 100644 --- a/src/EnvironmentTreeviewProvider.ts +++ b/src/EnvironmentTreeviewProvider.ts @@ -146,5 +146,6 @@ export class EnvironmentFileTreeItem extends vscode.TreeItem { this.contextValue = "file"; this.uri = uri; this.tooltip = this.uri.fsPath; + this.iconPath = vscode.ThemeIcon.File; } }