mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
getConnections API (#5651)
* getConnections * update * fix the condition check * pr feedback * fix test cases * add test for the new method * address comments
This commit is contained in:
10
src/sql/azdata.d.ts
vendored
10
src/sql/azdata.d.ts
vendored
@@ -26,13 +26,21 @@ declare module 'azdata' {
|
||||
groupId: string;
|
||||
saveProfile: boolean;
|
||||
azureTenantId?: string;
|
||||
options: { [name: string]: any };
|
||||
|
||||
static createFrom(options: any[]): ConnectionProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current connection based on the active editor or Object Explorer selection
|
||||
*/
|
||||
*/
|
||||
export function getCurrentConnection(): Thenable<ConnectionProfile>;
|
||||
|
||||
/**
|
||||
* Get known connection profiles including active connections, recent connections and saved connections.
|
||||
* @param activeConnectionsOnly Indicates whether only get the active connections, default value is false.
|
||||
* @returns array of connections
|
||||
*/
|
||||
export function getConnections(activeConnectionsOnly?: boolean): Thenable<ConnectionProfile[]>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user