From 95de276efdaa463ea5536d91101120b2ac868094 Mon Sep 17 00:00:00 2001 From: AdamRaichu <91494019+AdamRaichu@users.noreply.github.com> Date: Thu, 23 Mar 2023 10:45:39 -0400 Subject: [PATCH] use vscode.Uri.joinPath instead of asAbsolutePath --- src/treeViews/icons.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/treeViews/icons.ts b/src/treeViews/icons.ts index 11c6411f..98ad5108 100644 --- a/src/treeViews/icons.ts +++ b/src/treeViews/icons.ts @@ -15,8 +15,8 @@ export function getAbsoluteIconPath(relativeIconPath: string): { dark: string | vscode.Uri; } { return { - light: _context.asAbsolutePath(`resources/icons/light/${relativeIconPath}`), - dark: _context.asAbsolutePath(`resources/icons/dark/${relativeIconPath}`) + light: vscode.Uri.joinPath(_context.extensionUri, "resources", "icons", "light", relativeIconPath), + dark: vscode.Uri.joinPath(_context.extensionUri, "resources", "icons", "dark", relativeIconPath) }; }