Fix recent connections list to use <default> DB if no DB is specified by the user when a connection is made (#4564)

This commit is contained in:
Charles Gagnon
2019-03-15 17:28:56 -07:00
committed by Karl Burtram
parent 50f63a2f72
commit ec0a3bbc95

View File

@@ -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);