mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Open Scmp file in Schema Compare extension (#20435)
* Open Scmp file in Schema Compare extension * Address comments and fix failing test * Addressed comment
This commit is contained in:
@@ -1089,6 +1089,19 @@ export class SchemaCompareMainWindow {
|
||||
}
|
||||
|
||||
let fileUri = fileUris[0];
|
||||
this.openScmpFile(fileUri, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Primary functional entrypoint for opening the schema comparison window with the scmp file Uri provided.
|
||||
* @param fileUri .scmp file URI to open Schema Compare extension with
|
||||
* @param callFromWithinSC is the call from openScmp? False by default, since it is one of the direct entry points.
|
||||
*/
|
||||
public async openScmpFile(fileUri: vscode.Uri, callFromWithinSC: boolean = false): Promise<void> {
|
||||
if (!callFromWithinSC) {
|
||||
//Instantiate and open schema compare window if called from "Open in Schema Compare"
|
||||
await this.launch(undefined, undefined, false, undefined);
|
||||
}
|
||||
const service = await this.getService();
|
||||
let startTime = Date.now();
|
||||
const result = await service.schemaCompareOpenScmp(fileUri.fsPath);
|
||||
|
||||
Reference in New Issue
Block a user