Delete assertSingleQuery
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
} from "vscode";
|
||||
import { QueryHistoryConfig } from "../config";
|
||||
import {
|
||||
showAndLogErrorMessage,
|
||||
showAndLogExceptionWithTelemetry,
|
||||
showAndLogInformationMessage,
|
||||
showAndLogWarningMessage,
|
||||
@@ -1047,17 +1046,6 @@ export class QueryHistoryManager extends DisposableObject {
|
||||
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
|
||||
* when exactly 2 queries are selected always have the proper _from_ query. Always use
|
||||
|
||||
Reference in New Issue
Block a user