import * as path from 'path' ; import { TreeItemIconPath } from 'vscode-azureextensionui' ; import { ext } from '../extensionVariables' ; export namespace treeUtils { export function getIconPath ( iconName ) { return path . join ( getResourcesPath ( ) , `${ iconName }.svg` ) ; } export function getThemedIconPath ( iconName ) { return { light : path . join ( getResourcesPath ( ) , 'light' , `${ iconName }.svg` ) , dark : path . join ( getResourcesPath ( ) , 'dark' , `${ iconName }.svg` ) } ; } function getResourcesPath ( ) { return ext . context . asAbsolutePath ( 'resources' ) ; } }