Create showResultsInternal method
This commit is contained in:
@@ -58,6 +58,17 @@ export class CompareView extends AbstractWebview<
|
|||||||
selectedResultSetName?: string,
|
selectedResultSetName?: string,
|
||||||
) {
|
) {
|
||||||
this.comparePair = { from, to };
|
this.comparePair = { from, to };
|
||||||
|
|
||||||
|
await this.showResultsInternal(selectedResultSetName);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async showResultsInternal(selectedResultSetName?: string) {
|
||||||
|
if (!this.comparePair) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { from, to } = this.comparePair;
|
||||||
|
|
||||||
const panel = await this.getPanel();
|
const panel = await this.getPanel();
|
||||||
panel.reveal(undefined, true);
|
panel.reveal(undefined, true);
|
||||||
|
|
||||||
@@ -204,14 +215,7 @@ export class CompareView extends AbstractWebview<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async changeTable(newResultSetName: string) {
|
private async changeTable(newResultSetName: string) {
|
||||||
if (!this.comparePair?.from || !this.comparePair.to) {
|
await this.showResultsInternal(newResultSetName);
|
||||||
return;
|
|
||||||
}
|
|
||||||
await this.showResults(
|
|
||||||
this.comparePair.from,
|
|
||||||
this.comparePair.to,
|
|
||||||
newResultSetName,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getResultSet(
|
private async getResultSet(
|
||||||
|
|||||||
Reference in New Issue
Block a user