Add GetConnectionString command (without build break) (#2120)

* Revert "Revert "Adds "Get Connection String" command (#2108)" (#2116)"

This reverts commit c6d1fa2b7d.

* Fix build breaks
This commit is contained in:
Karl Burtram
2018-08-01 20:15:14 -04:00
committed by GitHub
parent c6d1fa2b7d
commit f4fa18ec05
16 changed files with 130 additions and 9 deletions

7
src/sql/sqlops.d.ts vendored
View File

@@ -87,6 +87,11 @@ declare module 'sqlops' {
*/
export function getActiveConnections(): Thenable<Connection[]>;
/**
* Get connection string
*/
export function getConnectionString(connectionId: string, includePassword: boolean): Thenable<string>;
/**
* Get the credentials for an active connection
* @param {string} connectionId The id of the connection
@@ -322,6 +327,8 @@ declare module 'sqlops' {
rebuildIntelliSenseCache(connectionUri: string): Thenable<void>;
getConnectionString(connectionUri: string, includePassword: boolean): Thenable<string> ;
registerOnConnectionComplete(handler: (connSummary: ConnectionInfoSummary) => any): void;
registerOnIntelliSenseCacheComplete(handler: (connectionUri: string) => any): void;