Skip to content

Timeout during query compilation should produce failed query history item #250

@henrymercer

Description

@henrymercer

Describe the bug
When query compilation times out, the message The request (id: 6, method: 'compilation/compileQuery') has been cancelled is added to the extension log, but a query history item corresponding to the timed out query is not added to the query history view.

To Reproduce

  1. Set codeQL.runningQueries.timeout to 1 second
  2. Run a long-running query e.g. a path problem query
  3. Focus the query history view
  4. Observe that the query history view doesn't contain an item corresponding to the timed-out compilation.

Expected behavior
The query history view should contain an item corresponding to the timed-out compilation with a failed icon and the status "timed out".

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions