From 34f32e656489587c5742f91ac43e96a16e274bfc Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 24 Jun 2022 11:30:41 -0700 Subject: [PATCH] Cleanup azdata api docs (#19824) --- src/sql/azdata.d.ts | 92 ++++++++++++++++++++++++++++----------------- 1 file changed, 58 insertions(+), 34 deletions(-) diff --git a/src/sql/azdata.d.ts b/src/sql/azdata.d.ts index 14e94b659c..88e8da1f32 100644 --- a/src/sql/azdata.d.ts +++ b/src/sql/azdata.d.ts @@ -734,45 +734,45 @@ declare module 'azdata' { defaultValue: string; - /// - /// Escaped identifier for the name of the column - /// + /** + * Escaped identifier for the name of the column + */ escapedName: string; - /// - /// Whether or not the column is computed - /// + /** + * Whether or not the column is computed + */ isComputed: boolean; - /// - /// Whether or not the column is deterministically computed - /// + /** + * Whether or not the column is deterministically computed + */ isDeterministic: boolean; - /// - /// Whether or not the column is an identity column - /// + /** + * Whether or not the column is an identity column + */ isIdentity: boolean; - /// - /// The ordinal ID of the column - /// + /** + * The ordinal ID of the column + */ ordinal: number; - /// - /// Whether or not the column is calculated on the server side. This could be a computed - /// column or a identity column. - /// + /** + * Whether or not the column is calculated on the server side. This could be a computed + * column or a identity column. + */ isCalculated: boolean; - /// - /// Whether or not the column is used in a key to uniquely identify a row - /// + /** + * Whether or not the column is used in a key to uniquely identify a row + */ isKey: boolean; - /// - /// Whether or not the column can be trusted for uniqueness - /// + /** + * Whether or not the column can be trusted for uniqueness + */ isTrustworthyForUniqueness: boolean; } @@ -2364,7 +2364,9 @@ declare module 'azdata' { } export interface DidChangeAccountsParams { - // Updated accounts + /** + * Updated accounts + */ accounts: Account[]; } @@ -3429,9 +3431,18 @@ declare module 'azdata' { } export enum ColumnSizingMode { - ForceFit = 0, // all columns will be sized to fit in viewable space, no horizontal scroll bar - AutoFit = 1, // columns will be ForceFit up to a certain number; currently 3. At 4 or more the behavior will switch to NO force fit - DataFit = 2 // columns use sizing based on cell data, horizontal scroll bar present if more cells than visible in view area + /** + * All columns will be sized to fit in viewable space, no horizontal scroll bar + */ + ForceFit = 0, + /** + * Columns will be ForceFit up to a certain number; currently 3. At 4 or more the behavior will switch to NO force fit + */ + AutoFit = 1, + /** + * Columns use sizing based on cell data, horizontal scroll bar present if more cells than visible in view area + */ + DataFit = 2 } export interface TableComponentProperties extends ComponentProperties { @@ -5014,20 +5025,33 @@ declare module 'azdata' { onQueryEvent(type: QueryEventType, document: QueryDocument, args: ResultSetSummary | string | undefined): void; } - // new extensibility interfaces export interface QueryDocument { + /** + * The ID of the connection provider for this query document + */ providerId: string; + /** + * The URI identifying this document + */ uri: string; - // set the document's execution options + /** + * Set the document's execution options, which will be used whenever a query is executed. + * @param options The execution options + */ setExecutionOptions(options: Map): Thenable; - // tab content is build using the modelview UI builder APIs - // probably should rename DialogTab class since it is useful outside dialogs + /** + * Adds a custom tab to the query editor results view + * @param tab The tab to add + */ createQueryTab(tab: window.DialogTab): void; - // connect the query document using the given connection profile + /** + * Connect the query document using the given connection profile + * @param connectionProfile The profile to use as the connection + */ connect(connectionProfile: connection.ConnectionProfile): Thenable; }