From 62f123af674452c4e9a833a80837d65ff30ee058 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com> Date: Fri, 14 Jul 2023 18:33:24 -0700 Subject: [PATCH] Fix serverInfo undefined due to wrong connection URI set on connection. (#23884) --- .../connection/browser/connectionManagementService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/services/connection/browser/connectionManagementService.ts b/src/sql/workbench/services/connection/browser/connectionManagementService.ts index 11235825b1..5f3d4e48f2 100644 --- a/src/sql/workbench/services/connection/browser/connectionManagementService.ts +++ b/src/sql/workbench/services/connection/browser/connectionManagementService.ts @@ -682,8 +682,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti connection.options = connectionErrorHandleResult.options; } if (connectionErrorHandleResult.reconnect) { - // Attempt reconnect if requested by provider - return this.connectWithOptions(connection, uri, options, callbacks); + // Attempt reconnect if requested by provider and reset URI to be regenerated. + return this.connectWithOptions(connection, undefined, options, callbacks); } else { if (callbacks.onConnectCanceled) { callbacks.onConnectCanceled();