Skip to content

Commit 37cf525

Browse files
committed
Fix changing page forgetting about sorting
1 parent 1f4e699 commit 37cf525

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

extensions/ql-vscode/src/interface.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,15 @@ export class InterfaceManager extends DisposableObject {
270270
await this.showPageOfInterpretedResults(msg.pageNumber);
271271
}
272272
else {
273-
await this.showPageOfRawResults(msg.selectedTable, msg.pageNumber);
273+
await this.showPageOfRawResults(
274+
msg.selectedTable,
275+
msg.pageNumber,
276+
// When we are in an unsorted state, we guarantee that
277+
// sortedResultsInfo doesn't have an entry for the current
278+
// result set. Use this to determine whether or not we use
279+
// the sorted bqrs file.
280+
this._displayedQuery?.sortedResultsInfo.has(msg.selectedTable) || false
281+
);
274282
}
275283
break;
276284
default:

0 commit comments

Comments
 (0)