mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
table designer validation support (#18438)
* table designer validation * vbump sts
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IPanelView } from 'sql/base/browser/ui/panel/panel';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import * as DOM from 'vs/base/browser/dom';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { DesignerScriptEditor } from 'sql/workbench/browser/designer/designerScriptEditor';
|
||||
|
||||
export class DesignerScriptEditorTabPanelView extends Disposable implements IPanelView {
|
||||
private _textEditor: DesignerScriptEditor;
|
||||
|
||||
constructor(private _instantiationService: IInstantiationService) {
|
||||
super();
|
||||
}
|
||||
|
||||
render(container: HTMLElement): void {
|
||||
this._textEditor = this._instantiationService.createInstance(DesignerScriptEditor, container);
|
||||
}
|
||||
|
||||
layout(dimension: DOM.Dimension): void {
|
||||
this._textEditor.layout(dimension);
|
||||
}
|
||||
|
||||
set content(content: string) {
|
||||
if (this._textEditor) {
|
||||
this._textEditor.content = content;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user