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:
Kim Santiago
2019-06-24 14:16:07 -07:00
committed by GitHub
parent e3f26e8f12
commit 6a0ffdfa60
6 changed files with 32 additions and 31 deletions

View File

@@ -46,7 +46,7 @@ export abstract class BasePage {
public abstract setupNavigationValidator();
protected async getServerValues(): Promise<{ connection, displayName, name }[]> {
let cons = await azdata.connection.getActiveConnections();
let cons = await azdata.connection.getConnections(/* activeConnectionsOnly */ true);
// This user has no active connections ABORT MISSION
if (!cons || cons.length === 0) {
return undefined;

View File

@@ -167,6 +167,6 @@ export abstract class DacFxConfigPage extends BasePage {
}
interface ConnectionDropdownValue extends azdata.CategoryValue {
connection: azdata.connection.Connection;
connection: azdata.connection.ConnectionProfile;
}

View File

@@ -10,7 +10,7 @@ import * as azdata from 'azdata';
* Data model to communicate between DacFx pages
*/
export interface DacFxDataModel {
server: azdata.connection.Connection;
server: azdata.connection.ConnectionProfile;
database: string;
serverName: string;
serverId: string;