mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
Tab contribution support both inline container and registered container (#766)
* accept inline nav section contribution * contribution accepted both inline container and registered container * address comments * formatting
This commit is contained in:
@@ -5,16 +5,15 @@
|
||||
import { IJSONSchema } from 'vs/base/common/jsonSchema';
|
||||
import * as nls from 'vs/nls';
|
||||
|
||||
import { registerTabContent } from 'sql/platform/dashboard/common/dashboardRegistry';
|
||||
import { registerContainerType } from 'sql/platform/dashboard/common/dashboardContainerRegistry';
|
||||
import { registerContainerType, registerNavSectionContainerType } from 'sql/platform/dashboard/common/dashboardContainerRegistry';
|
||||
|
||||
export const WEBVIEW_CONTAINER = 'webview-container';
|
||||
|
||||
let webviewSchema: IJSONSchema = {
|
||||
type: 'null',
|
||||
description: nls.localize('dashboard.tab.widgets', "The list of widgets that will be displayed in this tab."),
|
||||
description: nls.localize('dashboard.container.webview', "The webview that will be displayed in this tab."),
|
||||
default: null
|
||||
};
|
||||
|
||||
registerTabContent(WEBVIEW_CONTAINER, webviewSchema);
|
||||
registerContainerType(WEBVIEW_CONTAINER, webviewSchema);
|
||||
registerContainerType(WEBVIEW_CONTAINER, webviewSchema);
|
||||
registerNavSectionContainerType(WEBVIEW_CONTAINER, webviewSchema);
|
||||
Reference in New Issue
Block a user