Fix #6217 DacFx: Connection Dialog has no ConnectionProfile loaded (#6232)

* fix connection dialog not opening with connection profile

* bump extension version
This commit is contained in:
Kim Santiago
2019-07-01 14:42:32 -07:00
committed by GitHub
parent e5858dee52
commit 7f5e00fd81
2 changed files with 3 additions and 3 deletions

View File

@@ -86,9 +86,9 @@ export class DataTierApplicationWizard {
}
this.connection = await azdata.connection.getCurrentConnection();
if (!this.connection) {
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();
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) {