Fix serverInfo undefined due to wrong connection URI set on connection. (#23884)

This commit is contained in:
Cheena Malhotra
2023-07-14 18:33:24 -07:00
committed by GitHub
parent 6c37ba6c21
commit 62f123af67

View File

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