fixed:移除插件侧边栏中,筛选按钮下的kylinIDETeam筛选菜单.
This commit is contained in:
parent
e3e4607fce
commit
53a365cad3
|
@ -1028,27 +1028,29 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
|
||||||
run: () => runAction(this.instantiationService.createInstance(SearchExtensionsAction, '@recentlyPublished '))
|
run: () => runAction(this.instantiationService.createInstance(SearchExtensionsAction, '@recentlyPublished '))
|
||||||
});
|
});
|
||||||
|
|
||||||
const extensionsKylinCategoryFilterSubMenu = new MenuId('extensionsKylinCategoryFilterSubMenu');
|
// remove the old filter start by kylinIdeTeam{
|
||||||
MenuRegistry.appendMenuItem(extensionsFilterSubMenu, <ISubmenuItem>{
|
// const extensionsKylinCategoryFilterSubMenu = new MenuId('extensionsKylinCategoryFilterSubMenu');
|
||||||
submenu: extensionsKylinCategoryFilterSubMenu,
|
// MenuRegistry.appendMenuItem(extensionsFilterSubMenu, <ISubmenuItem>{
|
||||||
title: localize('filter by kylin category', "Kylin-Code Category"),
|
// submenu: extensionsKylinCategoryFilterSubMenu,
|
||||||
when: CONTEXT_HAS_GALLERY,
|
// title: localize('filter by kylin category', "Kylin-Code Category"),
|
||||||
group: '2_categories',
|
// when: CONTEXT_HAS_GALLERY,
|
||||||
order: 1,
|
// group: '2_categories',
|
||||||
});
|
// order: 1,
|
||||||
|
// });
|
||||||
|
|
||||||
Object.entries(extensionKylinCategories).forEach(([categoryKey, category], index) => {
|
// Object.entries(extensionKylinCategories).forEach(([categoryKey, category], index) => {
|
||||||
this.registerExtensionAction({
|
// this.registerExtensionAction({
|
||||||
id: `extensions.actions.searchByCategory.${categoryKey}`,
|
// id: `extensions.actions.searchByCategory.${categoryKey}`,
|
||||||
title: category,
|
// title: category,
|
||||||
menu: [{
|
// menu: [{
|
||||||
id: extensionsKylinCategoryFilterSubMenu,
|
// id: extensionsKylinCategoryFilterSubMenu,
|
||||||
when: CONTEXT_HAS_GALLERY,
|
// when: CONTEXT_HAS_GALLERY,
|
||||||
order: index,
|
// order: index,
|
||||||
}],
|
// }],
|
||||||
run: () => runAction(this.instantiationService.createInstance(SearchExtensionsAction, `@tag:"${categoryKey.toLowerCase()}"`))
|
// run: () => runAction(this.instantiationService.createInstance(SearchExtensionsAction, `@tag:"${categoryKey.toLowerCase()}"`))
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
// remove the old filter end by kylinIdeTeam}
|
||||||
|
|
||||||
const extensionsCategoryFilterSubMenu = new MenuId('extensionsCategoryFilterSubMenu');
|
const extensionsCategoryFilterSubMenu = new MenuId('extensionsCategoryFilterSubMenu');
|
||||||
MenuRegistry.appendMenuItem(extensionsFilterSubMenu, <ISubmenuItem>{
|
MenuRegistry.appendMenuItem(extensionsFilterSubMenu, <ISubmenuItem>{
|
||||||
|
@ -1241,6 +1243,22 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// this.registerExtensionAction({
|
||||||
|
// id: 'workbench.extensions.action.installKylinIdeTeamExtensions',
|
||||||
|
// title: localize('installKylinIdeTeamExtensions', "Install KylinIDETeam Extensions"),
|
||||||
|
// icon: installWorkspaceRecommendedIcon,
|
||||||
|
// menu: {
|
||||||
|
// id: MenuId.ViewTitle,
|
||||||
|
// when: ContextKeyExpr.equals('view', WORKSPACE_KYLINIDETEAM_VIEW_ID),
|
||||||
|
// group: 'navigation',
|
||||||
|
// order: 1
|
||||||
|
// },
|
||||||
|
// run: async (accessor: ServicesAccessor) => {
|
||||||
|
// const view = accessor.get(IViewsService).getActiveViewWithId(WORKSPACE_KYLINIDETEAM_VIEW_ID) as IWorkspaceKylinIDETeamExtensionsView;
|
||||||
|
// return view.installKylinIdeTeamExtensions();
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
this.registerExtensionAction({
|
this.registerExtensionAction({
|
||||||
id: 'workbench.extensions.action.installWorkspaceRecommendedExtensions',
|
id: 'workbench.extensions.action.installWorkspaceRecommendedExtensions',
|
||||||
title: localize('installWorkspaceRecommendedExtensions', "Install Workspace Recommended Extensions"),
|
title: localize('installWorkspaceRecommendedExtensions', "Install Workspace Recommended Extensions"),
|
||||||
|
|
Loading…
Reference in New Issue