Rename splatQueryHistory -> serializeQueryHistory
This commit is contained in:
@@ -47,7 +47,10 @@ import {
|
||||
QueryStatus,
|
||||
variantAnalysisStatusToQueryStatus,
|
||||
} from "./query-status";
|
||||
import { slurpQueryHistory, splatQueryHistory } from "./query-serialization";
|
||||
import {
|
||||
slurpQueryHistory,
|
||||
serializeQueryHistory,
|
||||
} from "./query-serialization";
|
||||
import { pathExists } from "fs-extra";
|
||||
import { CliVersionConstraint } from "./cli";
|
||||
import { HistoryItemLabelProvider } from "./history-item-label-provider";
|
||||
@@ -808,7 +811,7 @@ export class QueryHistoryManager extends DisposableObject {
|
||||
}
|
||||
|
||||
async writeQueryHistory(): Promise<void> {
|
||||
await splatQueryHistory(
|
||||
await serializeQueryHistory(
|
||||
this.treeDataProvider.allHistory,
|
||||
this.queryMetadataStorageLocation,
|
||||
);
|
||||
|
||||
@@ -112,7 +112,7 @@ export async function slurpQueryHistory(
|
||||
* @param queries the list of queries to save.
|
||||
* @param fsPath the path to save the queries to.
|
||||
*/
|
||||
export async function splatQueryHistory(
|
||||
export async function serializeQueryHistory(
|
||||
queries: QueryHistoryInfo[],
|
||||
fsPath: string,
|
||||
): Promise<void> {
|
||||
|
||||
@@ -23,7 +23,7 @@ import { CancellationTokenSource, Uri } from "vscode";
|
||||
import { tmpDir } from "../../../src/helpers";
|
||||
import {
|
||||
slurpQueryHistory,
|
||||
splatQueryHistory,
|
||||
serializeQueryHistory,
|
||||
} from "../../../src/query-serialization";
|
||||
import {
|
||||
formatLegacyMessage,
|
||||
@@ -499,7 +499,7 @@ describe("query-results", () => {
|
||||
const allHistoryPath = join(tmpDir.name, "workspace-query-history.json");
|
||||
|
||||
// splat and slurp
|
||||
await splatQueryHistory(allHistory, allHistoryPath);
|
||||
await serializeQueryHistory(allHistory, allHistoryPath);
|
||||
const allHistoryActual = await slurpQueryHistory(allHistoryPath);
|
||||
|
||||
// the dispose methods will be different. Ignore them.
|
||||
|
||||
Reference in New Issue
Block a user