mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Save db project information when saved in scmp file (#20335)
* Save db project information when saved in scmp file * Address comments
This commit is contained in:
@@ -1126,6 +1126,20 @@ export class SchemaCompareMainWindow {
|
|||||||
if (ownerUri) {
|
if (ownerUri) {
|
||||||
endpointInfo = endpoint;
|
endpointInfo = endpoint;
|
||||||
endpointInfo.ownerUri = ownerUri;
|
endpointInfo.ownerUri = ownerUri;
|
||||||
|
} else if (endpoint.endpointType === mssql.SchemaCompareEndpointType.Project) {
|
||||||
|
endpointInfo = {
|
||||||
|
endpointType: endpoint.endpointType,
|
||||||
|
packageFilePath: '',
|
||||||
|
serverDisplayName: '',
|
||||||
|
serverName: '',
|
||||||
|
databaseName: '',
|
||||||
|
ownerUri: '',
|
||||||
|
connectionDetails: undefined,
|
||||||
|
projectFilePath: endpoint.projectFilePath,
|
||||||
|
targetScripts: [],
|
||||||
|
dataSchemaProvider: '',
|
||||||
|
folderStructure: loc.schemaObjectType // TODO: Pick this automatically from the scmp file, after issue #20332 is resolved (check dsp as well)
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
// need to do this instead of just setting it to the endpoint because some fields are null which will cause an error when sending the compare request
|
// need to do this instead of just setting it to the endpoint because some fields are null which will cause an error when sending the compare request
|
||||||
endpointInfo = {
|
endpointInfo = {
|
||||||
|
|||||||
Reference in New Issue
Block a user