Delete assertSingleQuery
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
|||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { QueryHistoryConfig } from "../config";
|
import { QueryHistoryConfig } from "../config";
|
||||||
import {
|
import {
|
||||||
showAndLogErrorMessage,
|
|
||||||
showAndLogExceptionWithTelemetry,
|
showAndLogExceptionWithTelemetry,
|
||||||
showAndLogInformationMessage,
|
showAndLogInformationMessage,
|
||||||
showAndLogWarningMessage,
|
showAndLogWarningMessage,
|
||||||
@@ -1047,17 +1046,6 @@ export class QueryHistoryManager extends DisposableObject {
|
|||||||
return choice?.query;
|
return choice?.query;
|
||||||
}
|
}
|
||||||
|
|
||||||
private assertSingleQuery(
|
|
||||||
multiSelect: QueryHistoryInfo[] = [],
|
|
||||||
message = "Please select a single query.",
|
|
||||||
) {
|
|
||||||
if (multiSelect.length > 1) {
|
|
||||||
void showAndLogErrorMessage(message);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the compare with source query. This ensures that all compare command invocations
|
* Updates the compare with source query. This ensures that all compare command invocations
|
||||||
* when exactly 2 queries are selected always have the proper _from_ query. Always use
|
* when exactly 2 queries are selected always have the proper _from_ query. Always use
|
||||||
|
|||||||
Reference in New Issue
Block a user