Propagate the changelog url from the zip file if any

This commit is contained in:
XVincentX 2016-09-14 09:30:44 +02:00
parent 52b95aa516
commit 3027fff306
No known key found for this signature in database
GPG key ID: D618C95BD28F3AE0

View file

@ -148,7 +148,10 @@ export class ExtensionManagementService implements IExtensionManagementService {
const readme = children.filter(child => /^readme(\.txt|\.md|)$/i.test(child))[0];
const readmeUrl = readme ? URI.file(path.join(extensionPath, readme)).toString() : null;
const local: ILocalExtension = { id, manifest, metadata, path: extensionPath, readmeUrl };
const changelog = children.filter(child => /^changelog(\.txt|\.md|)$/i.test(child))[0];
const changelogUrl = changelog ? URI.file(path.join(extensionPath, changelog)).toString() : null;
const local: ILocalExtension = { id, manifest, metadata, path: extensionPath, readmeUrl, changelogUrl };
const rawManifest = assign(manifest, { __metadata: metadata });
return pfs.writeFile(manifestPath, JSON.stringify(rawManifest, null, '\t'))