Skip to content

Sorting results causes the dropdown to not show other query predicate results #1005

@kjcolley7

Description

@kjcolley7

When viewing results of queries with multiple query predicates, if you click one of the column headers to sort by that column, you can no longer view the other query predicate results in the dropdown unless you go to a previous set of results and back again.

Version
CodeQL extension version: 1.5.6 CodeQL CLI version: 2.7.0 Platform: darwin x64

To reproduce
Save this query as resultsBug.ql and run on any database:

query predicate foo(string s) {
	s = "foo"
}

query predicate bar(string s) {
	s = "bar"
}

Click the dropdown. Notice how you see foo, bar, and alerts. In the dropdown, select foo. Click the column header for s to sort by that column. Now click the dropdown again. Notice how you now only see foo and alerts, and that bar is missing.

Expected behavior
After sorting one query predicate's results by some column, I am still able to switch back to other query predicate results with the dropdown.

Metadata

Metadata

Assignees

No one assigned

    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