Fix DiffEditorComponent types (#18883)

* Fix DiffEditorComponent types

* spacing
This commit is contained in:
Charles Gagnon
2022-03-30 15:24:10 -07:00
committed by GitHub
parent 989ee0b2c7
commit 4166c622f3

34
src/sql/azdata.d.ts vendored
View File

@@ -2699,7 +2699,7 @@ declare module 'azdata' {
radioButton(): ComponentBuilder<RadioButtonComponent, RadioButtonProperties>; radioButton(): ComponentBuilder<RadioButtonComponent, RadioButtonProperties>;
webView(): ComponentBuilder<WebViewComponent, WebViewProperties>; webView(): ComponentBuilder<WebViewComponent, WebViewProperties>;
editor(): ComponentBuilder<EditorComponent, EditorProperties>; editor(): ComponentBuilder<EditorComponent, EditorProperties>;
diffeditor(): ComponentBuilder<DiffEditorComponent, DiffEditorComponent>; diffeditor(): ComponentBuilder<DiffEditorComponent, DiffEditorProperties>;
text(): ComponentBuilder<TextComponent, TextComponentProperties>; text(): ComponentBuilder<TextComponent, TextComponentProperties>;
image(): ComponentBuilder<ImageComponent, ImageComponentProperties>; image(): ComponentBuilder<ImageComponent, ImageComponentProperties>;
button(): ComponentBuilder<ButtonComponent, ButtonProperties>; button(): ComponentBuilder<ButtonComponent, ButtonProperties>;
@@ -2749,7 +2749,7 @@ declare module 'azdata' {
/** /**
* @deprecated Use withProps instead * @deprecated Use withProps instead
*/ */
withProperties<U>(properties: U): ComponentBuilder<TComponent, TPropertyBag>; withProperties(properties: TPropertyBag): ComponentBuilder<TComponent, TPropertyBag>;
/** /**
* Sets the initial set of properties for the component being created * Sets the initial set of properties for the component being created
* @param properties The properties to apply to the component * @param properties The properties to apply to the component
@@ -3959,23 +3959,39 @@ declare module 'azdata' {
readonly onEditorCreated: vscode.Event<any>; readonly onEditorCreated: vscode.Event<any>;
} }
export interface DiffEditorComponent extends Component { export interface DiffEditorProperties extends ComponentProperties {
/** /**
* Title of editor * Title of editor
*/ */
title: string; title: string;
/** /**
* The content inside the left text editor * The content inside the left text editor
*/ */
contentLeft: string; contentLeft: string;
/** /**
* The content inside the right text editor * The content inside the right text editor
*/ */
contentRight: string; contentRight: string;
/** /**
* The language mode for this text editor. The language mode is SQL by default. * The language mode for this text editor. The language mode is SQL by default.
*/ */
languageMode: string; languageMode?: string;
/**
* Toggle for whether the editor should be automatically resized or not
*/
isAutoResizable?: boolean;
/**
* Minimum height for editor component
*/
minimumHeight?: number;
}
export interface DiffEditorComponent extends DiffEditorProperties, Component {
/** /**
* The left editor Uri which will be used as a reference for VSCode Language Service. * The left editor Uri which will be used as a reference for VSCode Language Service.
* Currently this is auto-generated by the framework but can be queried after * Currently this is auto-generated by the framework but can be queried after
@@ -3997,16 +4013,6 @@ declare module 'azdata' {
* An event called when the editor is created * An event called when the editor is created
*/ */
readonly onEditorCreated: vscode.Event<any>; readonly onEditorCreated: vscode.Event<any>;
/**
* Toggle for whether the editor should be automatically resized or not
*/
isAutoResizable: boolean;
/**
* Minimum height for editor component
*/
minimumHeight: number;
} }
export interface ButtonComponent extends ComponentWithIcon, ButtonProperties { export interface ButtonComponent extends ComponentWithIcon, ButtonProperties {