mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-29 16:20:29 -04:00
This commit is contained in:
@@ -328,6 +328,7 @@ export interface INewConnectionParams {
|
|||||||
showDashboard?: boolean;
|
showDashboard?: boolean;
|
||||||
providers?: string[];
|
providers?: string[];
|
||||||
isEditConnection?: boolean;
|
isEditConnection?: boolean;
|
||||||
|
oldProfileId?: string; // used for edit connection
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IConnectableInput {
|
export interface IConnectableInput {
|
||||||
|
|||||||
@@ -166,6 +166,10 @@ export class ConnectionDialogService implements IConnectionDialogService {
|
|||||||
}
|
}
|
||||||
profile = result.connection;
|
profile = result.connection;
|
||||||
|
|
||||||
|
if (params.oldProfileId && params.isEditConnection) {
|
||||||
|
profile.id = params.oldProfileId;
|
||||||
|
}
|
||||||
|
|
||||||
profile.serverName = trim(profile.serverName);
|
profile.serverName = trim(profile.serverName);
|
||||||
|
|
||||||
// append the port to the server name for SQL Server connections
|
// append the port to the server name for SQL Server connections
|
||||||
|
|||||||
@@ -235,7 +235,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
|||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
connectionType: ConnectionType.default,
|
connectionType: ConnectionType.default,
|
||||||
isEditConnection: true
|
isEditConnection: true,
|
||||||
|
oldProfileId: model.id
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user