Skip to content

Error when displaying log from a previous VS Code run after restarting #1174

@edoardopirovano

Description

@edoardopirovano

Describe the bug
After a restart, items in the Query History view preserved from previous runs still have a Show Query Log button when right-clicked. However, the query log is gone as it is stored in temporary storage that is cleared on restart, so clicking the button gives an error.

Version
Latest main of both CodeQL and VS Code.

To reproduce

  1. Run a query.
  2. Restart VS Code.
  3. Right click the Query History item for the run and select Show Query Log.

Expected behavior

Either we don't show Show Query Log any more, or we place the log somewhere where it is preserved across runs.

Metadata

Metadata

Assignees

Labels

VSCodebugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions