Fix API issues for external extensions (#14796)

* Fix azdata API break

* Move dialogwidth to azdata.d.ts

* re-add parameter

* add comment back
This commit is contained in:
Charles Gagnon
2021-03-18 16:46:32 -07:00
committed by GitHub
parent 31ce58a8fc
commit c65c856d2f
2 changed files with 5 additions and 3 deletions

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

@@ -3916,6 +3916,11 @@ declare module 'azdata' {
Information = 2
}
/**
* The width of a dialog, either from a predetermined size list or a specific size (such as px)
*/
export type DialogWidth = 'narrow' | 'medium' | 'wide' | number | string;
/**
* A message shown in a dialog. If the level is not set it defaults to error.
*/

View File

@@ -584,8 +584,6 @@ declare module 'azdata' {
pageName?: string;
}
export type DialogWidth = 'narrow' | 'medium' | 'wide' | number | string;
/**
* These dialog styles affect how the dialog displays in the application.
* normal: Positioned top and centered.
@@ -621,7 +619,6 @@ declare module 'azdata' {
*/
export function createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth, dialogStyle?: DialogStyle, dialogPosition?: DialogPosition, renderHeader?: boolean, renderFooter?: boolean, dialogProperties?: IDialogProperties): Dialog;
export interface Button {
/**
* Specifies whether this is a secondary button. Default is false.