mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Add text editor component for model view (#2058)
* add text editor component for model view * add comments
This commit is contained in:
29
src/sql/sqlops.proposed.d.ts
vendored
29
src/sql/sqlops.proposed.d.ts
vendored
@@ -23,6 +23,7 @@ declare module 'sqlops' {
|
||||
checkBox(): ComponentBuilder<CheckBoxComponent>;
|
||||
radioButton(): ComponentBuilder<RadioButtonComponent>;
|
||||
webView(): ComponentBuilder<WebViewComponent>;
|
||||
editor(): ComponentBuilder<EditorComponent>;
|
||||
text(): ComponentBuilder<TextComponent>;
|
||||
button(): ComponentBuilder<ButtonComponent>;
|
||||
dropDown(): ComponentBuilder<DropDownComponent>;
|
||||
@@ -435,6 +436,20 @@ declare module 'sqlops' {
|
||||
html?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Editor properties for the editor component
|
||||
*/
|
||||
export interface EditorProperties {
|
||||
/**
|
||||
* The content inside the text editor
|
||||
*/
|
||||
content?: string;
|
||||
/**
|
||||
* The languge mode for this text editor. The language mode is SQL by default.
|
||||
*/
|
||||
languageMode?: string
|
||||
}
|
||||
|
||||
export interface ButtonProperties extends ComponentProperties, ComponentWithIcon {
|
||||
label?: string;
|
||||
isFile?: boolean;
|
||||
@@ -503,6 +518,20 @@ declare module 'sqlops' {
|
||||
onMessage: vscode.Event<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Editor component for displaying the text code editor
|
||||
*/
|
||||
export interface EditorComponent extends Component {
|
||||
/**
|
||||
* The content inside the text editor
|
||||
*/
|
||||
content: string;
|
||||
/**
|
||||
* The languge mode for this text editor. The language mode is SQL by default.
|
||||
*/
|
||||
languageMode: string;
|
||||
}
|
||||
|
||||
export interface ButtonComponent extends Component {
|
||||
label: string;
|
||||
iconPath: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
|
||||
Reference in New Issue
Block a user