mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Bring in all the extensibility updates we added during the hackathon (#2056)
Extensibility updates
This commit is contained in:
18
src/sql/sqlops.proposed.d.ts
vendored
18
src/sql/sqlops.proposed.d.ts
vendored
@@ -376,6 +376,7 @@ declare module 'sqlops' {
|
||||
export interface TableComponentProperties extends ComponentProperties {
|
||||
data: any[][];
|
||||
columns: string[] | TableColumn[];
|
||||
fontSize?: number | string;
|
||||
selectedRows?: number[];
|
||||
}
|
||||
|
||||
@@ -1108,4 +1109,21 @@ declare module 'sqlops' {
|
||||
export function startBackgroundOperation(operationInfo: BackgroundOperationInfo): void;
|
||||
|
||||
}
|
||||
|
||||
export namespace connection {
|
||||
/**
|
||||
* List the databases that can be accessed from the given connection
|
||||
* @param {string} connectionId The ID of the connection
|
||||
* @returns {string[]} An list of names of databases
|
||||
*/
|
||||
export function listDatabases(connectionId: string): Thenable<string[]>;
|
||||
|
||||
/**
|
||||
* Get a URI corresponding to the given connection so that it can be used with data
|
||||
* providers and other APIs that require a connection API.
|
||||
* Note: If the given connection corresponds to multiple URIs this may return any of them
|
||||
* @param connectionId The ID of the connection
|
||||
*/
|
||||
export function getUriForConnection(connectionId: string): Thenable<string>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user