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