Skip to content

Commit b3b7a18

Browse files
authored
Merge pull request #20 from AdamRaichu/main
use vscode.Uri.joinPath instead of asAbsolutePath
2 parents a3c15c4 + 95de276 commit b3b7a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/treeViews/icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export function getAbsoluteIconPath(relativeIconPath: string): {
1515
dark: string | vscode.Uri;
1616
} {
1717
return {
18-
light: _context.asAbsolutePath(`resources/icons/light/${relativeIconPath}`),
19-
dark: _context.asAbsolutePath(`resources/icons/dark/${relativeIconPath}`)
18+
light: vscode.Uri.joinPath(_context.extensionUri, "resources", "icons", "light", relativeIconPath),
19+
dark: vscode.Uri.joinPath(_context.extensionUri, "resources", "icons", "dark", relativeIconPath)
2020
};
2121
}
2222

0 commit comments

Comments
 (0)