From ec0a3bbc95fa44897a8d6a088a96917ed4b63ad7 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 15 Mar 2019 17:28:56 -0700 Subject: [PATCH] Fix recent connections list to use DB if no DB is specified by the user when a connection is made (#4564) --- .../platform/connection/common/connectionManagementService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sql/platform/connection/common/connectionManagementService.ts b/src/sql/platform/connection/common/connectionManagementService.ts index 555d6a2e3c..927a2269d6 100644 --- a/src/sql/platform/connection/common/connectionManagementService.ts +++ b/src/sql/platform/connection/common/connectionManagementService.ts @@ -468,8 +468,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti // The connected succeeded so add it to our active connections now, optionally adding it to the MRU based on // the options.saveTheConnection setting let connectionMgmtInfo = this._connectionStatusManager.findConnection(uri); - let activeConnection = connectionMgmtInfo.connectionProfile; - this.tryAddActiveConnection(connectionMgmtInfo, activeConnection, options.saveTheConnection); + this.tryAddActiveConnection(connectionMgmtInfo, connection, options.saveTheConnection); if (callbacks.onConnectSuccess) { callbacks.onConnectSuccess(options.params);