export function insidersDownloadDirMetadata()

in lib/util.ts [101:116]


export function insidersDownloadDirMetadata(dir: string) {
	let productJsonPath;
	if (process.platform === 'win32') {
		productJsonPath = path.resolve(dir, 'resources/app/product.json');
	} else if (process.platform === 'darwin') {
		productJsonPath = path.resolve(dir, 'Visual Studio Code - Insiders.app/Contents/Resources/app/product.json');
	} else {
		productJsonPath = path.resolve(dir, 'VSCode-linux-x64/resources/app/product.json');
	}
	const productJson = JSON.parse(readFileSync(productJsonPath, 'utf-8'));

	return {
		version: productJson.commit,
		date: new Date(productJson.date)
	};
}