Stops Azure connection with the "Do not save" server group option from being stored in the default server group list. (#21997)

* Fix Azure connections do not save to server group error

* Revert unnecessary change
This commit is contained in:
Lewis Sanchez
2023-02-21 13:47:40 -08:00
committed by GitHub
parent 004d55d98d
commit effdf4f538

View File

@@ -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,