mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Remove popular extensions view (#4679)
We don't track installs for our extensions so the "Popular Extensions" category is just a duplicate of the full list. Removing it to reduce clutter until we can add that functionality in. This also removes the command associated with the view.
This commit is contained in:
@@ -162,8 +162,9 @@ actionRegistry.registerWorkbenchAction(languageExtensionsActionDescriptor, 'Pref
|
|||||||
const azureExtensionsActionDescriptor = new SyncActionDescriptor(ShowAzureExtensionsAction, ShowAzureExtensionsAction.ID, ShowAzureExtensionsAction.SHORT_LABEL);
|
const azureExtensionsActionDescriptor = new SyncActionDescriptor(ShowAzureExtensionsAction, ShowAzureExtensionsAction.ID, ShowAzureExtensionsAction.SHORT_LABEL);
|
||||||
actionRegistry.registerWorkbenchAction(azureExtensionsActionDescriptor, 'Preferences: Azure Extensions', PreferencesLabel);
|
actionRegistry.registerWorkbenchAction(azureExtensionsActionDescriptor, 'Preferences: Azure Extensions', PreferencesLabel);
|
||||||
|
|
||||||
const popularActionDescriptor = new SyncActionDescriptor(ShowPopularExtensionsAction, ShowPopularExtensionsAction.ID, ShowPopularExtensionsAction.LABEL);
|
// {{SQL CARBON EDIT}}
|
||||||
actionRegistry.registerWorkbenchAction(popularActionDescriptor, 'Extensions: Show Popular Extensions', ExtensionsLabel);
|
// const popularActionDescriptor = new SyncActionDescriptor(ShowPopularExtensionsAction, ShowPopularExtensionsAction.ID, ShowPopularExtensionsAction.LABEL);
|
||||||
|
// actionRegistry.registerWorkbenchAction(popularActionDescriptor, 'Extensions: Show Popular Extensions', ExtensionsLabel);
|
||||||
|
|
||||||
const enabledActionDescriptor = new SyncActionDescriptor(ShowEnabledExtensionsAction, ShowEnabledExtensionsAction.ID, ShowEnabledExtensionsAction.LABEL);
|
const enabledActionDescriptor = new SyncActionDescriptor(ShowEnabledExtensionsAction, ShowEnabledExtensionsAction.ID, ShowEnabledExtensionsAction.LABEL);
|
||||||
actionRegistry.registerWorkbenchAction(enabledActionDescriptor, 'Extensions: Show Enabled Extensions', ExtensionsLabel);
|
actionRegistry.registerWorkbenchAction(enabledActionDescriptor, 'Extensions: Show Enabled Extensions', ExtensionsLabel);
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ const viewIdNameMappings: { [id: string]: string } = {
|
|||||||
'extensions.listView': localize('marketPlace', "Marketplace"),
|
'extensions.listView': localize('marketPlace', "Marketplace"),
|
||||||
'extensions.enabledExtensionList': localize('enabledExtensions', "Enabled"),
|
'extensions.enabledExtensionList': localize('enabledExtensions', "Enabled"),
|
||||||
'extensions.disabledExtensionList': localize('disabledExtensions', "Disabled"),
|
'extensions.disabledExtensionList': localize('disabledExtensions', "Disabled"),
|
||||||
'extensions.popularExtensionsList': localize('popularExtensions', "Popular"),
|
|
||||||
// {{SQL CARBON EDIT}}
|
// {{SQL CARBON EDIT}}
|
||||||
|
// 'extensions.popularExtensionsList': localize('popularExtensions', "Popular"),
|
||||||
'extensions.recommendedList': localize('recommendedExtensions', "Marketplace"),
|
'extensions.recommendedList': localize('recommendedExtensions', "Marketplace"),
|
||||||
'extensions.otherrecommendedList': localize('otherRecommendedExtensions', "Other Recommendations"),
|
'extensions.otherrecommendedList': localize('otherRecommendedExtensions', "Other Recommendations"),
|
||||||
'extensions.workspaceRecommendedList': localize('workspaceRecommendedExtensions', "Workspace Recommendations"),
|
'extensions.workspaceRecommendedList': localize('workspaceRecommendedExtensions', "Workspace Recommendations"),
|
||||||
@@ -94,7 +94,8 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
|
|||||||
viewDescriptors.push(this.createMarketPlaceExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createMarketPlaceExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createEnabledExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createEnabledExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createDisabledExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createDisabledExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createPopularExtensionsListViewDescriptor());
|
// {{SQL CARBON EDIT}}
|
||||||
|
// viewDescriptors.push(this.createPopularExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createBuiltInExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createBuiltInExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createBuiltInBasicsExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createBuiltInBasicsExtensionsListViewDescriptor());
|
||||||
viewDescriptors.push(this.createBuiltInThemesExtensionsListViewDescriptor());
|
viewDescriptors.push(this.createBuiltInThemesExtensionsListViewDescriptor());
|
||||||
@@ -153,19 +154,20 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Separate view for popular extensions required as we need to show popular and recommended sections
|
// {{SQL CARBON EDIT}}
|
||||||
// in the default view when there is no search text, and user has no installed extensions.
|
// // Separate view for popular extensions required as we need to show popular and recommended sections
|
||||||
private createPopularExtensionsListViewDescriptor(): IViewDescriptor {
|
// // in the default view when there is no search text, and user has no installed extensions.
|
||||||
const id = 'extensions.popularExtensionsList';
|
// private createPopularExtensionsListViewDescriptor(): IViewDescriptor {
|
||||||
return {
|
// const id = 'extensions.popularExtensionsList';
|
||||||
id,
|
// return {
|
||||||
name: viewIdNameMappings[id],
|
// id,
|
||||||
ctorDescriptor: { ctor: ExtensionsListView },
|
// name: viewIdNameMappings[id],
|
||||||
when: ContextKeyExpr.and(ContextKeyExpr.not('searchExtensions'), ContextKeyExpr.not('hasInstalledExtensions')),
|
// ctorDescriptor: { ctor: ExtensionsListView },
|
||||||
weight: 60,
|
// when: ContextKeyExpr.and(ContextKeyExpr.not('searchExtensions'), ContextKeyExpr.not('hasInstalledExtensions')),
|
||||||
order: 1
|
// weight: 60,
|
||||||
};
|
// order: 1
|
||||||
}
|
// };
|
||||||
|
// }
|
||||||
|
|
||||||
private createExtensionsViewDescriptorsForServer(server: IExtensionManagementServer): IViewDescriptor[] {
|
private createExtensionsViewDescriptorsForServer(server: IExtensionManagementServer): IViewDescriptor[] {
|
||||||
return [{
|
return [{
|
||||||
@@ -406,7 +408,8 @@ export class ExtensionsViewlet extends ViewContainerViewlet implements IExtensio
|
|||||||
this.instantiationService.createInstance(ShowDisabledExtensionsAction, ShowDisabledExtensionsAction.ID, ShowDisabledExtensionsAction.LABEL),
|
this.instantiationService.createInstance(ShowDisabledExtensionsAction, ShowDisabledExtensionsAction.ID, ShowDisabledExtensionsAction.LABEL),
|
||||||
this.instantiationService.createInstance(ShowBuiltInExtensionsAction, ShowBuiltInExtensionsAction.ID, ShowBuiltInExtensionsAction.LABEL),
|
this.instantiationService.createInstance(ShowBuiltInExtensionsAction, ShowBuiltInExtensionsAction.ID, ShowBuiltInExtensionsAction.LABEL),
|
||||||
this.instantiationService.createInstance(ShowRecommendedExtensionsAction, ShowRecommendedExtensionsAction.ID, ShowRecommendedExtensionsAction.LABEL),
|
this.instantiationService.createInstance(ShowRecommendedExtensionsAction, ShowRecommendedExtensionsAction.ID, ShowRecommendedExtensionsAction.LABEL),
|
||||||
this.instantiationService.createInstance(ShowPopularExtensionsAction, ShowPopularExtensionsAction.ID, ShowPopularExtensionsAction.LABEL),
|
// {{SQL CARBON EDIT}}
|
||||||
|
// this.instantiationService.createInstance(ShowPopularExtensionsAction, ShowPopularExtensionsAction.ID, ShowPopularExtensionsAction.LABEL),
|
||||||
new Separator(),
|
new Separator(),
|
||||||
// {{SQL CARBON EDIT}}
|
// {{SQL CARBON EDIT}}
|
||||||
//this.instantiationService.createInstance(ChangeSortAction, 'extensions.sort.install', localize('sort by installs', "Sort By: Install Count"), this.onSearchChange, 'installs'),
|
//this.instantiationService.createInstance(ChangeSortAction, 'extensions.sort.install', localize('sort by installs', "Sort By: Install Count"), this.onSearchChange, 'installs'),
|
||||||
|
|||||||
Reference in New Issue
Block a user