From e28b86ea8772a07aafab88864f149ea759bf1066 Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Wed, 7 Feb 2018 19:17:32 -0800 Subject: [PATCH] Fix some minor connection db dropdown bugs (#637) * Fix some minor connection db dropdown bugs * Put back cache for failed list --- .../connection/connectionDialog/connectionController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sql/parts/connection/connectionDialog/connectionController.ts b/src/sql/parts/connection/connectionDialog/connectionController.ts index f0e6737168..1e7ecc022e 100644 --- a/src/sql/parts/connection/connectionDialog/connectionController.ts +++ b/src/sql/parts/connection/connectionDialog/connectionController.ts @@ -60,6 +60,8 @@ export class ConnectionController implements IConnectionComponentController { tempProfile.authenticationType = authenticationType; tempProfile.userName = userName; tempProfile.password = password; + tempProfile.groupFullName = ''; + tempProfile.saveProfile = false; let uri = this._connectionManagementService.getConnectionId(tempProfile); return new Promise((resolve, reject) => { if (this._databaseCache.has(uri)) { @@ -80,7 +82,7 @@ export class ConnectionController implements IConnectionComponentController { this._databaseCache.set(uri, null); reject(); } - }) + }); } else { reject(connResult.errorMessage); } @@ -114,6 +116,7 @@ export class ConnectionController implements IConnectionComponentController { } public showUiComponent(container: HTMLElement): void { + this._databaseCache = new Map(); this._connectionWidget.createConnectionWidget(container); }