Skip to content

Commit b3552cd

Browse files
committed
Document meaning of undefined sortState
1 parent 58e69c8 commit b3552cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extensions/ql-vscode/src/interface-types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export interface PreviousExecution {
3434
export interface Interpretation {
3535
sourceLocationPrefix: string;
3636
numTruncatedResults: number;
37+
// sortState being undefined means don't sort, just present results in the order
38+
// they appear in the sarif file.
3739
sortState?: InterpretedResultsSortState;
3840
sarif: sarif.Log;
3941
}
@@ -128,12 +130,16 @@ export interface InterpretedResultsSortState {
128130
sortDirection: SortDirection;
129131
}
130132

133+
// sortState being undefined means don't sort, just present results in the order
134+
// they appear in the bqrs file.
131135
interface ChangeRawResultsSortMsg {
132136
t: 'changeSort';
133137
resultSetName: string;
134138
sortState?: RawResultsSortState;
135139
}
136140

141+
// sortState being undefined means don't sort, just present results in the order
142+
// they appear in the sarif file.
137143
interface ChangeInterpretedResultsSortMsg {
138144
t: 'changeInterpretedSort';
139145
sortState?: InterpretedResultsSortState;

0 commit comments

Comments
 (0)