Skip to content

Commit 9657f69

Browse files
vince-fugnittolmcbout
authored andcommitted
vsx: add version field
the following commit adds the `version` field when viewing the data of a given extension (viewing the extension editor including the readme). Signed-off-by: vince-fugnitto <[email protected]>
1 parent f5c0827 commit 9657f69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vsx-registry/src/browser/vsx-extension.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class VSXExtensionEditorComponent extends AbstractVSXExtensionComponent {
350350
render(): React.ReactNode {
351351
const {
352352
builtin, preview, id, iconUrl, publisher, displayName, description,
353-
averageRating, downloadCount, repository, license, readme
353+
averageRating, downloadCount, repository, license, readme, version
354354
} = this.props.extension;
355355
return <React.Fragment>
356356
<div className='header'>
@@ -374,6 +374,7 @@ export class VSXExtensionEditorComponent extends AbstractVSXExtensionComponent {
374374
{averageRating !== undefined && <span className='average-rating' onClick={this.openAverageRating}>{this.renderStars()}</span>}
375375
{repository && <span className='repository' onClick={this.openRepository}>Repository</span>}
376376
{license && <span className='license' onClick={this.openLicense}>{license}</span>}
377+
{version && <span className='version'>{version}</span>}
377378
</div>
378379
<div className='description noWrapInfo'>{description}</div>
379380
{this.renderAction()}

0 commit comments

Comments
 (0)