mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix Schema compare recompare after options reset not using correct options (#6539)
* Fix incorrect options being used after reset * bump version
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "schema-compare",
|
"name": "schema-compare",
|
||||||
"displayName": "%displayName%",
|
"displayName": "%displayName%",
|
||||||
"description": "%description%",
|
"description": "%description%",
|
||||||
"version": "0.4.0",
|
"version": "0.5.0",
|
||||||
"publisher": "Microsoft",
|
"publisher": "Microsoft",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -448,6 +448,7 @@ export class SchemaCompareOptionsDialog {
|
|||||||
if (this.optionsChanged) {
|
if (this.optionsChanged) {
|
||||||
vscode.window.showWarningMessage(SchemaCompareOptionsDialog.OptionsChangedMessage, SchemaCompareOptionsDialog.YesButtonText, SchemaCompareOptionsDialog.NoButtonText).then((result) => {
|
vscode.window.showWarningMessage(SchemaCompareOptionsDialog.OptionsChangedMessage, SchemaCompareOptionsDialog.YesButtonText, SchemaCompareOptionsDialog.NoButtonText).then((result) => {
|
||||||
if (result === SchemaCompareOptionsDialog.YesButtonText) {
|
if (result === SchemaCompareOptionsDialog.YesButtonText) {
|
||||||
|
this.schemaComparison.setDeploymentOptions(this.deploymentOptions);
|
||||||
this.schemaComparison.startCompare();
|
this.schemaComparison.startCompare();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -266,6 +266,10 @@ export class SchemaCompareMainWindow {
|
|||||||
return this.deploymentOptions;
|
return this.deploymentOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public setDeploymentOptions(deploymentOptions: azdata.DeploymentOptions): void {
|
||||||
|
this.deploymentOptions = deploymentOptions;
|
||||||
|
}
|
||||||
|
|
||||||
public async execute(): Promise<void> {
|
public async execute(): Promise<void> {
|
||||||
Telemetry.sendTelemetryEvent('SchemaComparisonStarted');
|
Telemetry.sendTelemetryEvent('SchemaComparisonStarted');
|
||||||
const service = await SchemaCompareMainWindow.getService(msSqlProvider);
|
const service = await SchemaCompareMainWindow.getService(msSqlProvider);
|
||||||
@@ -649,7 +653,6 @@ export class SchemaCompareMainWindow {
|
|||||||
// create fresh every time
|
// create fresh every time
|
||||||
this.schemaCompareOptionDialog = new SchemaCompareOptionsDialog(this.deploymentOptions, this);
|
this.schemaCompareOptionDialog = new SchemaCompareOptionsDialog(this.deploymentOptions, this);
|
||||||
await this.schemaCompareOptionDialog.openDialog();
|
await this.schemaCompareOptionDialog.openDialog();
|
||||||
this.deploymentOptions = this.schemaCompareOptionDialog.deploymentOptions;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -915,7 +918,7 @@ export class SchemaCompareMainWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.updateSourceAndTarget();
|
this.updateSourceAndTarget();
|
||||||
this.deploymentOptions = result.deploymentOptions;
|
this.setDeploymentOptions(result.deploymentOptions);
|
||||||
this.scmpSourceExcludes = result.excludedSourceElements;
|
this.scmpSourceExcludes = result.excludedSourceElements;
|
||||||
this.scmpTargetExcludes = result.excludedTargetElements;
|
this.scmpTargetExcludes = result.excludedTargetElements;
|
||||||
this.sourceTargetSwitched = result.originalTargetName !== this.targetEndpointInfo.databaseName;
|
this.sourceTargetSwitched = result.originalTargetName !== this.targetEndpointInfo.databaseName;
|
||||||
@@ -1014,7 +1017,7 @@ export class SchemaCompareMainWindow {
|
|||||||
// Same as dacfx default options
|
// Same as dacfx default options
|
||||||
const service = await SchemaCompareMainWindow.getService(msSqlProvider);
|
const service = await SchemaCompareMainWindow.getService(msSqlProvider);
|
||||||
let result = await service.schemaCompareGetDefaultOptions();
|
let result = await service.schemaCompareGetDefaultOptions();
|
||||||
this.deploymentOptions = result.defaultDeploymentOptions;
|
this.setDeploymentOptions(result.defaultDeploymentOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user