Only filter preview extensions when preview feat disabled (#10212)

* Filter database preview tabs

* Update comment

* Revert changes - just update comment
This commit is contained in:
Charles Gagnon
2020-04-30 10:46:16 -07:00
committed by GitHub
parent fdc21bfb9e
commit 0e6117f044
3 changed files with 3 additions and 4 deletions

View File

@@ -300,7 +300,8 @@ export abstract class DashboardPage extends AngularDisposable implements IConfig
this.loadNewTabs(allTabs.filter((tab) => tab.group === homeTabGroupId));
// If preview features are disabled only show the home tab
// If preview features are disabled only show the home tab since extension-contributed tabs
// are still under preview
const extensionTabsEnabled = this.configurationService.getValue('workbench')['enablePreviewFeatures'];
if (!extensionTabsEnabled) {
allTabs = [];

View File

@@ -167,7 +167,6 @@ ExtensionsRegistry.registerExtensionPoint<IDashboardTabContrib | IDashboardTabCo
if (isValidIcon(icon, extension)) {
iconClass = createCSSRuleForIcon(icon, extension);
}
if (result) {
registerTab({ description, title, container, provider, when, id, alwaysShow, publisher, isHomeTab, group, iconClass });
}