Replace the ID of the generated connection profile with the one through edit data (#10413)

This commit is contained in:
Amir Omidi
2020-05-15 10:48:56 -07:00
committed by GitHub
parent 19fab3fc9c
commit b519d51052
3 changed files with 7 additions and 1 deletions

View File

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