Skip to content

Conversation

aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented Mar 6, 2020

fix: Display queries that are canceled during compilation

This change converts a cancelled query into a synthetic query result
that is displayed in query history.

Also includes some light refactoring.

fix: Display message when query times out

Also, add the message to the log.

Closes #250
Closes #251

Also, add the message to the log.

Closes github#251
@lgtm-com
Copy link

lgtm-com bot commented Mar 6, 2020

This pull request introduces 1 alert when merging 46fddfd into 35f619e - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

This change converts a cancelled query into a synthetic query result
that is displayed in query history. 

Also includes some light refactoring.

Closes github#250.
jcreedcmu
jcreedcmu previously approved these changes Mar 9, 2020
@jcreedcmu
Copy link
Contributor

Oops, don't believe this approval yet, I clicked in the wrong tab.

query,
result: {
evaluationTime: 0,
resultType: messages.QueryResultType.CANCELLATION,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want resultType to be a parameter of createSyntheticResult? This should still be messages.QueryResultType.OTHER_ERROR if we arrive here from the non-cancellation fallthrough (your diff's line 472).

aeisenberg added a commit to aeisenberg/vscode-codeql that referenced this pull request Mar 9, 2020
Converts a namespace into an enum.
@aeisenberg aeisenberg merged commit 059a75c into github:master Mar 9, 2020
@aeisenberg aeisenberg deleted the timeout branch November 24, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants