Added editor to table designer (#17576)

* format doc

* correct class name

* set content

* remove mssql commands

* merge classes

* code refactoring and bug fixing

* remove unnecessary class

* handle promise

Co-authored-by: Alan Ren <alanren@microsoft.com>
This commit is contained in:
Aditya Bist
2021-11-03 21:07:36 -07:00
committed by GitHub
parent 893563c9c3
commit 99f5c406e3
4 changed files with 114 additions and 22 deletions

View File

@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { PanelTabIdentifier } from 'sql/base/browser/ui/panel/panel';
import { Dimension } from 'vs/base/browser/dom';
import { Event } from 'vs/base/common/event';
export interface DesignerComponentInput {
@@ -208,12 +209,13 @@ export interface DesignerTextEditor {
* Gets or sets the content of the text editor
*/
content: string;
/**
* Gets or sets a boolean value indicating whether the editor is readonly
*/
readonly: boolean;
/**
* Event fired when the content is changed by user
*/
readonly onDidContentChange: Event<string>;
/**
* Update the size of the editor
*/
layout(dimensions: Dimension): void;
}