Skip to content

Conversation

@nickrolfe
Copy link
Contributor

@nickrolfe nickrolfe commented Nov 25, 2025

This setting was a bit of a footgun for users, and generally only caused performance to get worse.

By adding a deprecationMessage to package.json, the docs suggest, and my testing confirms, that this will cause the setting to be hidden for users who haven't set it. For those who have explicitly set it (to either true or false), the settings UI will show the deprecation message.

Screenshot 2025-11-25 at 16 58 19

@nickrolfe nickrolfe force-pushed the nickrolfe/rm-save-cache branch from 1f960f1 to 74ac0fb Compare November 25, 2025 17:23
## [UNRELEASED]

- 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)
- Deprecate the setting (`codeQL.runningQueries.saveCache`) to aggressively save intermediate results to the disk cache. [#4210](https://github.com/github/vscode-codeql/pull/4210)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) There is some ambiguity, as the sentence can be parsed in two ways:

  • Deprecate (the setting to aggressively save ...)
  • (Deprecate the setting) to aggressively save ...

Please consider rewording it for greater clarity. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point; fixed.

@nickrolfe nickrolfe force-pushed the nickrolfe/rm-save-cache branch from 74ac0fb to f7fcc9e Compare November 25, 2025 17:38
@nickrolfe nickrolfe marked this pull request as ready for review November 25, 2025 17:39
@nickrolfe nickrolfe requested a review from a team as a code owner November 25, 2025 17:39
Copilot AI review requested due to automatic review settings November 25, 2025 17:39
Copilot finished reviewing on behalf of nickrolfe November 25, 2025 17:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR deprecates the codeQL.runningQueries.saveCache setting which aggressively saved intermediate query results to disk cache but generally degraded performance. The setting is marked as deprecated in VS Code's configuration UI (showing for users who previously set it) while removing its functionality from the codebase.

Key changes:

  • Added deprecation message to the setting in package.json
  • Removed all code that implemented the saveCache functionality
  • Updated tests to remove references to the deprecated setting

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
extensions/ql-vscode/package.json Added deprecationMessage to the saveCache setting to mark it as deprecated in VS Code UI
extensions/ql-vscode/src/config.ts Removed SAVE_CACHE_SETTING constant, saveCache property from QueryServerConfig interface, and saveCache getter from QueryServerConfigListener class
extensions/ql-vscode/src/query-server/query-server-client.ts Removed the code that added the --save-cache flag to query server arguments
extensions/ql-vscode/test/vscode-tests/minimal-workspace/config.test.ts Removed saveCache from the test configuration settings array
extensions/ql-vscode/test/vscode-tests/cli-integration/query-server/query-server-client.test.ts Removed saveCache: false from the QueryServerClient test initialization
extensions/ql-vscode/CHANGELOG.md Added entry documenting the deprecation of the setting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nickrolfe nickrolfe merged commit 928aa15 into main Nov 26, 2025
63 checks passed
@nickrolfe nickrolfe deleted the nickrolfe/rm-save-cache branch November 26, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants