mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix options not getting set and aggregates not getting unchecked (#6675)
This commit is contained in:
@@ -8,6 +8,7 @@ import * as nls from 'vscode-nls';
|
|||||||
import * as azdata from 'azdata';
|
import * as azdata from 'azdata';
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { SchemaCompareMainWindow } from '../schemaCompareMainWindow';
|
import { SchemaCompareMainWindow } from '../schemaCompareMainWindow';
|
||||||
|
import { isNullOrUndefined } from 'util';
|
||||||
|
|
||||||
const localize = nls.loadMessageBundle();
|
const localize = nls.loadMessageBundle();
|
||||||
|
|
||||||
@@ -445,10 +446,11 @@ export class SchemaCompareOptionsDialog {
|
|||||||
protected async execute() {
|
protected async execute() {
|
||||||
this.SetDeploymentOptions();
|
this.SetDeploymentOptions();
|
||||||
this.SetObjectTypeOptions();
|
this.SetObjectTypeOptions();
|
||||||
|
this.schemaComparison.setDeploymentOptions(this.deploymentOptions);
|
||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1107,7 +1109,7 @@ export class SchemaCompareOptionsDialog {
|
|||||||
private GetSchemaCompareIncludedObjectsUtil(label): boolean {
|
private GetSchemaCompareIncludedObjectsUtil(label): boolean {
|
||||||
switch (label) {
|
switch (label) {
|
||||||
case SchemaCompareOptionsDialog.Aggregates:
|
case SchemaCompareOptionsDialog.Aggregates:
|
||||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === azdata.SchemaObjectType.Aggregates)) ? false : true;
|
return !isNullOrUndefined(this.deploymentOptions.excludeObjectTypes.find(x => x === azdata.SchemaObjectType.Aggregates)) ? false : true;
|
||||||
case SchemaCompareOptionsDialog.ApplicationRoles:
|
case SchemaCompareOptionsDialog.ApplicationRoles:
|
||||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === azdata.SchemaObjectType.ApplicationRoles)) ? false : true;
|
return (this.deploymentOptions.excludeObjectTypes.find(x => x === azdata.SchemaObjectType.ApplicationRoles)) ? false : true;
|
||||||
case SchemaCompareOptionsDialog.Assemblies:
|
case SchemaCompareOptionsDialog.Assemblies:
|
||||||
|
|||||||
Reference in New Issue
Block a user