Skip to content

Commit

Permalink
Merge pull request #20 from AdamRaichu/main
Browse files Browse the repository at this point in the history
use vscode.Uri.joinPath instead of asAbsolutePath
  • Loading branch information
cschleiden authored Mar 23, 2023
2 parents a3c15c4 + 95de276 commit b3b7a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/treeViews/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
}

Expand Down

0 comments on commit b3b7a18

Please sign in to comment.