mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 01:28:26 -05:00
a few fixes for dacpac extension (#10595)
This commit is contained in:
@@ -98,9 +98,15 @@ export class DataTierApplicationWizard {
|
||||
|
||||
this.connection = await azdata.connection.getCurrentConnection();
|
||||
if (!this.connection || (profile && this.connection.connectionId !== profile.id)) {
|
||||
// @TODO: remove cast once azdata update complete - karlb 3/1/2019
|
||||
this.connection = <azdata.connection.ConnectionProfile><any>await azdata.connection.openConnectionDialog(undefined, profile);
|
||||
|
||||
// check if there are any active connections
|
||||
const connections = await azdata.connection.getConnections(true);
|
||||
if (connections.length > 0) {
|
||||
// set connection to the first one in the list
|
||||
this.connection = connections[0];
|
||||
} else {
|
||||
// @TODO: remove cast once azdata update complete - karlb 3/1/2019
|
||||
this.connection = <azdata.connection.ConnectionProfile><any>await azdata.connection.openConnectionDialog(undefined, profile);
|
||||
}
|
||||
// don't open the wizard if connection dialog is cancelled
|
||||
if (!this.connection) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user