mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
Replace the ID of the generated connection profile with the one through edit data (#10413)
This commit is contained in:
@@ -166,6 +166,10 @@ export class ConnectionDialogService implements IConnectionDialogService {
|
||||
}
|
||||
profile = result.connection;
|
||||
|
||||
if (params.oldProfileId && params.isEditConnection) {
|
||||
profile.id = params.oldProfileId;
|
||||
}
|
||||
|
||||
profile.serverName = trim(profile.serverName);
|
||||
|
||||
// append the port to the server name for SQL Server connections
|
||||
|
||||
@@ -236,7 +236,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
}
|
||||
let params = {
|
||||
connectionType: ConnectionType.default,
|
||||
isEditConnection: true
|
||||
isEditConnection: true,
|
||||
oldProfileId: model.id
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user