diff --git a/extensions/helpers/fs.ts b/extensions/helpers/fs.ts index 9dca63b..ca80024 100644 --- a/extensions/helpers/fs.ts +++ b/extensions/helpers/fs.ts @@ -61,7 +61,10 @@ export function getThemeIconsContribute(ID: string): IPackageJSONThemeIcons { */ export function getIconVariantFromTheme(theme: string): string { const {themeIconVariants} = getDefaultValues(); - const found = Object.keys(themeIconVariants).find(variant => theme.includes(variant)); + const splitted = theme.split('-'); + const variantIcon = splitted[splitted.length - 1]; + const found = Object.keys(themeIconVariants) + .find(key => themeIconVariants[key].includes(variantIcon)); return found ? found.toLowerCase() : null; }