mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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));
|
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'];
|
const extensionTabsEnabled = this.configurationService.getValue('workbench')['enablePreviewFeatures'];
|
||||||
if (!extensionTabsEnabled) {
|
if (!extensionTabsEnabled) {
|
||||||
allTabs = [];
|
allTabs = [];
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ ExtensionsRegistry.registerExtensionPoint<IDashboardTabContrib | IDashboardTabCo
|
|||||||
if (isValidIcon(icon, extension)) {
|
if (isValidIcon(icon, extension)) {
|
||||||
iconClass = createCSSRuleForIcon(icon, extension);
|
iconClass = createCSSRuleForIcon(icon, extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
registerTab({ description, title, container, provider, when, id, alwaysShow, publisher, isHomeTab, group, iconClass });
|
registerTab({ description, title, container, provider, when, id, alwaysShow, publisher, isHomeTab, group, iconClass });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,8 +246,7 @@ export interface IExtensionDescription extends IExtensionManifest {
|
|||||||
readonly isUnderDevelopment: boolean;
|
readonly isUnderDevelopment: boolean;
|
||||||
readonly extensionLocation: URI;
|
readonly extensionLocation: URI;
|
||||||
enableProposedApi?: boolean;
|
enableProposedApi?: boolean;
|
||||||
// {{ SQL CARBON EDIT }}
|
readonly forceReload?: boolean; // {{ SQL CARBON EDIT }}
|
||||||
readonly forceReload?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isLanguagePackExtension(manifest: IExtensionManifest): boolean {
|
export function isLanguagePackExtension(manifest: IExtensionManifest): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user