mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
* Update SC dialog to start a new connection * Functionally complete * Fix target db to pick correct database * Address comments * Added test+fixed one missing scenario * Address comments + add one more test
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as azdata from 'azdata';
|
|
import * as vscode from 'vscode';
|
|
import { SchemaCompareDialog } from '../dialogs/schemaCompareDialog';
|
|
import { SchemaCompareMainWindow } from '../schemaCompareMainWindow';
|
|
|
|
export class SchemaCompareDialogTest extends SchemaCompareDialog {
|
|
|
|
constructor(
|
|
schemaCompareMainWindow: SchemaCompareMainWindow,
|
|
view: azdata.ModelView,
|
|
extensionContext: vscode.ExtensionContext) {
|
|
super(schemaCompareMainWindow, view, extensionContext);
|
|
}
|
|
|
|
// only for test
|
|
public getSourceServerDropdownValue(): string | azdata.CategoryValue {
|
|
if (this.sourceServerDropdown) {
|
|
return this.sourceServerDropdown.value;
|
|
}
|
|
return undefined;
|
|
}
|
|
|
|
public getTargetServerDropdownValue(): string | azdata.CategoryValue {
|
|
if (this.targetServerDropdown) {
|
|
return this.targetServerDropdown.value;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|