remove the unused widgets (#9483)

This commit is contained in:
Alan Ren
2020-03-11 11:56:36 -07:00
committed by GitHub
parent 96f0ae79ca
commit a2935fca3a

View File

@@ -150,8 +150,8 @@ interface IExtensionEditorTemplate {
builtin: HTMLElement;
license: HTMLElement;
publisher: HTMLElement;
installCount: HTMLElement;
rating: HTMLElement;
// installCount: HTMLElement; // {{SQL CARBON EDIT}} remove install count widget
// rating: HTMLElement; // {{SQL CARBON EDIT}} remove rating widget
repository: HTMLElement;
description: HTMLElement;
extensionActionBar: ActionBar;
@@ -224,9 +224,10 @@ export class ExtensionEditor extends BaseEditor {
const subtitle = append(details, $('.subtitle'));
const publisher = append(subtitle, $('span.publisher.clickable', { title: localize('publisher', "Publisher name"), tabIndex: 0 }));
const installCount = append(subtitle, $('span.install', { title: localize('install count', "Install count"), tabIndex: 0 }));
// {{SQL CARBON EDIT}} remove rating and install count widgets
// const installCount = append(subtitle, $('span.install', { title: localize('install count', "Install count"), tabIndex: 0 }));
const rating = append(subtitle, $('span.rating.clickable', { title: localize('rating', "Rating"), tabIndex: 0 }));
// const rating = append(subtitle, $('span.rating.clickable', { title: localize('rating', "Rating"), tabIndex: 0 }));
const repository = append(subtitle, $('span.repository.clickable'));
repository.textContent = localize('repository', 'Repository');
@@ -280,13 +281,13 @@ export class ExtensionEditor extends BaseEditor {
iconContainer,
identifier,
ignoreActionbar,
installCount,
// installCount, // {{SQL CARBON EDIT}} remove install count widget
license,
name,
navbar,
preview,
publisher,
rating,
// rating, // {{SQL CARBON EDIT}} remove rating widget
repository,
subtext,
subtextContainer
@@ -360,10 +361,10 @@ export class ExtensionEditor extends BaseEditor {
toggleClass(template.name, 'clickable', !!extension.url);
toggleClass(template.publisher, 'clickable', !!extension.publisher); // {{SQL CARBON EDIT}} !!extension.url -> !!extension.publisher, for ADS we don't have marketplace website, but still want to make it clickable and filter extensions by publisher
toggleClass(template.rating, 'clickable', !!extension.url);
// toggleClass(template.rating, 'clickable', !!extension.url); // {{SQL CARBON EDIT}} remove rating widget
if (extension.url) {
this.transientDisposables.add(this.onClick(template.name, () => this.openerService.open(URI.parse(extension.url!))));
this.transientDisposables.add(this.onClick(template.rating, () => this.openerService.open(URI.parse(`${extension.url}#review-details`))));
// this.transientDisposables.add(this.onClick(template.rating, () => this.openerService.open(URI.parse(`${extension.url}#review-details`)))); // {{SQL CARBON EDIT}} remove rating widget
this.transientDisposables.add(this.onClick(template.publisher, () => {
this.viewletService.openViewlet(VIEWLET_ID, true)
.then(viewlet => viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer)