File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
extensions/ql-vscode/src/query-history Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1082,24 +1082,24 @@ export class QueryHistoryManager extends DisposableObject {
1082
1082
1083
1083
private async findOtherQueryToCompare (
1084
1084
fromItem : CompletedLocalQueryInfo ,
1085
- allItemsSelected : CompletedLocalQueryInfo [ ] ,
1085
+ allSelectedItems : CompletedLocalQueryInfo [ ] ,
1086
1086
) : Promise < CompletedLocalQueryInfo | undefined > {
1087
1087
const dbName = fromItem . initialInfo . databaseInfo . name ;
1088
1088
1089
1089
// If exactly 2 items are selected, return the one that
1090
1090
// isn't being used as the "from" item.
1091
- if ( allItemsSelected . length === 2 ) {
1091
+ if ( allSelectedItems . length === 2 ) {
1092
1092
const otherItem =
1093
- fromItem === allItemsSelected [ 0 ]
1094
- ? allItemsSelected [ 1 ]
1095
- : allItemsSelected [ 0 ] ;
1093
+ fromItem === allSelectedItems [ 0 ]
1094
+ ? allSelectedItems [ 1 ]
1095
+ : allSelectedItems [ 0 ] ;
1096
1096
if ( otherItem . initialInfo . databaseInfo . name !== dbName ) {
1097
1097
throw new Error ( "Query databases must be the same." ) ;
1098
1098
}
1099
1099
return otherItem ;
1100
1100
}
1101
1101
1102
- if ( allItemsSelected . length > 2 ) {
1102
+ if ( allSelectedItems . length > 2 ) {
1103
1103
throw new Error ( "Please select no more than 2 queries." ) ;
1104
1104
}
1105
1105
You can’t perform that action at this time.
0 commit comments