mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Update dacpac and schema compare extensions to use getConnections() (#6131)
* update dacpac and schema compare extensions to use getConnections * use more const * make MSSQL a const * changing name of mssql const * add comment for name of parameter
This commit is contained in:
@@ -513,8 +513,8 @@ export class SchemaCompareDialog {
|
||||
}
|
||||
}
|
||||
|
||||
protected async getServerValues(isTarget: boolean): Promise<{ connection: azdata.connection.Connection, displayName: string, name: string }[]> {
|
||||
let cons = await azdata.connection.getActiveConnections();
|
||||
protected async getServerValues(isTarget: boolean): Promise<{ connection: azdata.connection.ConnectionProfile, displayName: string, name: string }[]> {
|
||||
let cons = await azdata.connection.getConnections(/* activeConnectionsOnly */ true);
|
||||
// This user has no active connections
|
||||
if (!cons || cons.length === 0) {
|
||||
return undefined;
|
||||
@@ -668,5 +668,5 @@ export class SchemaCompareDialog {
|
||||
}
|
||||
|
||||
interface ConnectionDropdownValue extends azdata.CategoryValue {
|
||||
connection: azdata.connection.Connection;
|
||||
connection: azdata.connection.ConnectionProfile;
|
||||
}
|
||||
Reference in New Issue
Block a user