Skip to content

Conversation

nickrolfe
Copy link
Contributor

@nickrolfe nickrolfe commented Sep 17, 2025

#4037 introduced a bug where quickEvalPosition — which indicates that the query was spawned via quick-eval — was not being passed through in the completed query info. This meant the extension tried to interpret the results with the metadata from the enclosing file, which would then fail if it was a .ql file with a @kind that required a particular named query-predicate.

459d6a9 introduced a bug where quickEvalPosition -- which indicates
that the query was spawned via quick-eval -- was not being passed
through in the completed query info. This meant the extension tried to
interpret the results with the metadata from the enclosing file, which
would then fail if it was a .ql file with metadata.
@nickrolfe nickrolfe marked this pull request as ready for review September 17, 2025 13:31
@nickrolfe nickrolfe requested a review from a team as a code owner September 17, 2025 13:31
@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 13:31
Copy link

@Copilot 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 fixes a bug where quick evaluation within .ql files caused spurious errors about processing query metadata. The issue was that quickEvalPosition was not being passed through in the completed query info, causing the extension to incorrectly attempt to interpret quick-eval results with metadata from the enclosing file.

  • Pass quickEvalPosition from query info to completed query info instead of undefined
  • Add changelog entry documenting the bug fix

Reviewed Changes

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

File Description
extensions/ql-vscode/src/local-queries/local-query-run.ts Pass through quickEvalPosition to prevent incorrect metadata interpretation
extensions/ql-vscode/CHANGELOG.md Add changelog entry for the bug fix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nickrolfe nickrolfe requested a review from alexet September 17, 2025 13:31
@nickrolfe nickrolfe merged commit 3230e69 into main Sep 17, 2025
31 checks passed
@nickrolfe nickrolfe deleted the nickrolfe/quickeval-fix branch September 17, 2025 15:46
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.

2 participants