Skip to content

Commit 928aa15

Browse files
authored
Merge pull request #4210 from github/nickrolfe/rm-save-cache
Deprecate `codeQL.runningQueries.saveCache` setting
2 parents ddeb8c5 + f7fcc9e commit 928aa15

File tree

6 files changed

+2
-17
lines changed

6 files changed

+2
-17
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [UNRELEASED]
44

55
- Rename command "CodeQL: Trim Overlay Base Cache" to "CodeQL: Trim Cache to Overlay-Base" for consistency with "CodeQL: Warm Overlay-Base Cache for [...]" commands. [#4204](https://github.com/github/vscode-codeql/pull/4204)
6+
- Deprecate the setting (`codeQL.runningQueries.saveCache`) that aggressively saved intermediate results to the disk cache. [#4210](https://github.com/github/vscode-codeql/pull/4210)
67

78
## 1.17.6 - 24 October 2025
89

extensions/ql-vscode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
"type": "boolean",
196196
"default": false,
197197
"scope": "window",
198+
"deprecationMessage": "This setting no longer has any effect.",
198199
"description": "Aggressively save intermediate results to the disk cache. This may speed up subsequent queries if they are similar. Be aware that using this option will greatly increase disk usage and initial evaluation time."
199200
},
200201
"codeQL.runningQueries.cacheSize": {

extensions/ql-vscode/src/config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ const NUMBER_OF_THREADS_SETTING = new Setting(
226226
"numberOfThreads",
227227
RUNNING_QUERIES_SETTING,
228228
);
229-
const SAVE_CACHE_SETTING = new Setting("saveCache", RUNNING_QUERIES_SETTING);
230229
const CACHE_SIZE_SETTING = new Setting("cacheSize", RUNNING_QUERIES_SETTING);
231230
const TIMEOUT_SETTING = new Setting("timeout", RUNNING_QUERIES_SETTING);
232231
const MEMORY_SETTING = new Setting("memory", RUNNING_QUERIES_SETTING);
@@ -257,7 +256,6 @@ const CUSTOM_LOG_DIRECTORY_SETTING = new Setting(
257256
/** When these settings change, the running query server should be restarted. */
258257
const QUERY_SERVER_RESTARTING_SETTINGS = [
259258
NUMBER_OF_THREADS_SETTING,
260-
SAVE_CACHE_SETTING,
261259
CACHE_SIZE_SETTING,
262260
MEMORY_SETTING,
263261
DEBUG_SETTING,
@@ -268,7 +266,6 @@ export interface QueryServerConfig {
268266
codeQlPath: string;
269267
debug: boolean;
270268
numThreads: number;
271-
saveCache: boolean;
272269
cacheSize: number;
273270
queryMemoryMb?: number;
274271
timeoutSecs: number;
@@ -432,10 +429,6 @@ export class QueryServerConfigListener
432429
return NUMBER_OF_THREADS_SETTING.getValue<number>();
433430
}
434431

435-
public get saveCache(): boolean {
436-
return SAVE_CACHE_SETTING.getValue<boolean>();
437-
}
438-
439432
public get cacheSize(): number {
440433
return CACHE_SIZE_SETTING.getValue<number | null>() || 0;
441434
}

extensions/ql-vscode/src/query-server/query-server-client.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ export class QueryServerClient extends DisposableObject {
190190
ramArgs,
191191
);
192192

193-
if (this.config.saveCache) {
194-
args.push("--save-cache");
195-
}
196-
197193
if (this.config.cacheSize > 0) {
198194
args.push("--max-disk-cache");
199195
args.push(this.config.cacheSize.toString());

extensions/ql-vscode/test/vscode-tests/cli-integration/query-server/query-server-client.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ describeWithCodeQL()("using the query server", () => {
124124
debug: false,
125125
cacheSize: 0,
126126
numThreads: 1,
127-
saveCache: false,
128127
timeoutSecs: 0,
129128
},
130129
cliServer,

extensions/ql-vscode/test/vscode-tests/minimal-workspace/config.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ describe("config listeners", () => {
6565
property: "numThreads",
6666
values: [0, 1],
6767
},
68-
{
69-
name: "codeQL.runningQueries.saveCache",
70-
property: "saveCache",
71-
values: [false, true],
72-
},
7368
{
7469
name: "codeQL.runningQueries.cacheSize",
7570
property: "cacheSize",

0 commit comments

Comments
 (0)