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