vBump STS to 1.9.5 & add optional application name parameter for connection string (#18201)

* include application name optional parameter

* vBump STS to 1.9.5
This commit is contained in:
Vasu Bhog
2022-02-04 17:56:59 -08:00
committed by GitHub
parent 7bd5968faa
commit b7fe4c09e2
2 changed files with 4 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ export async function launchAddSqlBindingQuickpick(uri: vscode.Uri | undefined,
continue; continue;
} }
try { try {
connectionString = await vscodeMssqlApi.getConnectionString(connectionUri, false); connectionString = await vscodeMssqlApi.getConnectionString(connectionUri, false, false);
} catch (e) { } catch (e) {
// failed to get connection string for selected connection and will go back to prompt for connection string methods // failed to get connection string for selected connection and will go back to prompt for connection string methods
console.warn(e); console.warn(e);

View File

@@ -79,10 +79,11 @@ declare module 'vscode-mssql' {
/** /**
* Get the connection string for the provided connection Uri * Get the connection string for the provided connection Uri
* @param connectionUri The URI of the connection to get the connection string for. * @param connectionUri The URI of the connection to get the connection string for.
* @param includePassword to include password with connection string * @param includePassword Whether the Password is included in the connection string. Default is false.
* @param includeApplicationName Whether the Application Name is included in the connection string. Default is true
* @returns connection string * @returns connection string
*/ */
getConnectionString(connectionUri: String, includePassword?: boolean): Promise<string>; getConnectionString(connectionUri: String, includePassword?: boolean, includeApplicationName?: boolean): Promise<string>;
} }
/** /**