未验证 提交 026977c2 编写于 作者: X XVincentX

Take changelog from extension if provided

上级 c844c651
......@@ -111,6 +111,7 @@ export interface IGalleryExtensionProperties {
export interface IGalleryExtensionAssets {
manifest: string;
readme: string;
changelog: string;
download: string;
icon: string;
iconFallback: string;
......
......@@ -96,6 +96,7 @@ enum FilterType {
const AssetType = {
Icon: 'Microsoft.VisualStudio.Services.Icons.Default',
Details: 'Microsoft.VisualStudio.Services.Content.Details',
Changelog: 'Microsoft.VisualStudio.Services.Content.Changelog',
Manifest: 'Microsoft.VisualStudio.Code.Manifest',
VSIX: 'Microsoft.VisualStudio.Services.VSIXPackage',
License: 'Microsoft.VisualStudio.Services.Content.License',
......@@ -223,6 +224,7 @@ function toExtension(galleryExtension: IRawGalleryExtension, extensionsGalleryUr
const assets = {
manifest: getAssetSource(version.files, AssetType.Manifest),
readme: getAssetSource(version.files, AssetType.Details),
changelog: getAssetSource(version.files, AssetType.Changelog),
download: `${ getAssetSource(version.files, AssetType.VSIX) }?install=true`,
icon,
iconFallback,
......
......@@ -109,7 +109,7 @@ class Extension implements IExtension {
return this.local.changelogUrl;
}
return ''; // Hopefully we will change this once the gallery will support that.
return this.gallery && this.gallery.assets.changelog;
}
get iconUrl(): string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册