mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
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:
@@ -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 = [];
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user