Skip to content

Commit 57b6c9b

Browse files
committed
Don't mention splat/slurp in comments or descriptions
1 parent 80dfe4b commit 57b6c9b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

extensions/ql-vscode/src/query-serialization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function deserializeQueryHistory(
4848
q.completedQuery.query,
4949
QueryEvaluationInfo.prototype,
5050
);
51-
// slurped queries do not need to be disposed
51+
// deserialized queries do not need to be disposed
5252
q.completedQuery.dispose = () => {
5353
/**/
5454
};
@@ -83,7 +83,7 @@ export async function deserializeQueryHistory(
8383
// queries aged out.
8484
return asyncFilter(parsedQueries, async (q) => {
8585
if (q.t === "remote" || q.t === "variant-analysis") {
86-
// the slurper doesn't know where the remote queries are stored
86+
// the deserializer doesn't know where the remote queries are stored
8787
// so we need to assume here that they exist. Later, we check to
8888
// see if they exist on disk.
8989
return true;

extensions/ql-vscode/test/vscode-tests/no-workspace/query-results.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ describe("query-results", () => {
438438
);
439439
});
440440

441-
describe("splat and slurp", () => {
441+
describe("serialize and deserialize", () => {
442442
let infoSuccessRaw: LocalQueryInfo;
443443
let infoSuccessInterpreted: LocalQueryInfo;
444444
let infoEarlyFailure: LocalQueryInfo;
@@ -488,7 +488,7 @@ describe("query-results", () => {
488488
];
489489
});
490490

491-
it("should splat and slurp query history", async () => {
491+
it("should serialize and deserialize query history", async () => {
492492
// the expected results only contains the history with completed queries
493493
const expectedHistory = [
494494
infoSuccessRaw,
@@ -498,7 +498,7 @@ describe("query-results", () => {
498498

499499
const allHistoryPath = join(tmpDir.name, "workspace-query-history.json");
500500

501-
// splat and slurp
501+
// serialize and deserialize
502502
await serializeQueryHistory(allHistory, allHistoryPath);
503503
const allHistoryActual = await deserializeQueryHistory(allHistoryPath);
504504

@@ -508,7 +508,7 @@ describe("query-results", () => {
508508
const completedQuery = info.completedQuery;
509509
(completedQuery as any).dispose = undefined;
510510

511-
// these fields should be missing on the slurped value
511+
// these fields should be missing on the deserialized value
512512
// but they are undefined on the original value
513513
if (!("logFileLocation" in completedQuery)) {
514514
(completedQuery as any).logFileLocation = undefined;

0 commit comments

Comments
 (0)