src/themes.js
/**
 * Generate an icon theme from source data.
 *
 * @param {Object} theme `contributes.iconThemes` entry from `package.json`
 */
Generate an icon theme from source data.
Generate an icon theme from source data .
function generateIconTheme(theme) {
	const themeId = getThemeId(theme);
	const iconTheme = getIconTheme(themeId);
	const contents = JSON.stringify(iconTheme, null, 4);
	const outPath = theme.path;
	const targetDir = dirname(outPath);
	mkdirSync(targetDir, { recursive: true });
	writeFileSync(outPath, contents);
}
function generateIconTheme ( theme ) { const themeId = getThemeId ( theme ) ; const iconTheme = getIconTheme ( themeId ) ; const contents = JSON . stringify ( iconTheme , null , 4 ) ; const outPath = theme . path ; const targetDir = dirname ( outPath ) ; mkdirSync ( targetDir , { recursive : true } ) ; writeFileSync ( outPath , contents ) ; }
Generate an icon theme from source data.
Generate an icon theme from source data .