diff --git a/src/sql/workbench/api/browser/mainThreadConnectionManagement.ts b/src/sql/workbench/api/browser/mainThreadConnectionManagement.ts index 7f4b8487fa..1cd51e708e 100644 --- a/src/sql/workbench/api/browser/mainThreadConnectionManagement.ts +++ b/src/sql/workbench/api/browser/mainThreadConnectionManagement.ts @@ -169,8 +169,6 @@ export class MainThreadConnectionManagement extends Disposable implements MainTh } : undefined; if (connectionCompletionOptions && connectionCompletionOptions.saveConnection) { - // Somehow, connectionProfile.saveProfile is false even if initialConnectionProfile.saveProfile is true, reset the flag here. - connectionProfile.saveProfile = initialConnectionProfile.saveProfile; await this._connectionManagementService.connectAndSaveProfile(connectionProfile, undefined, { saveTheConnection: isUndefinedOrNull(connectionCompletionOptions.saveConnection) ? true : connectionCompletionOptions.saveConnection, showDashboard: isUndefinedOrNull(connectionCompletionOptions.showDashboard) ? false : connectionCompletionOptions.showDashboard,