File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/ql-vscode/src/query-history Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1086,7 +1086,8 @@ export class QueryHistoryManager extends DisposableObject {
1086
1086
) : Promise < CompletedLocalQueryInfo | undefined > {
1087
1087
const dbName = fromItem . initialInfo . databaseInfo . name ;
1088
1088
1089
- // if exactly 2 queries are selected, use those
1089
+ // If exactly 2 items are selected, return the one that
1090
+ // isn't being used as the "from" item.
1090
1091
if ( allItemsSelected . length === 2 ) {
1091
1092
const otherItem =
1092
1093
fromItem === allItemsSelected [ 0 ]
@@ -1102,7 +1103,7 @@ export class QueryHistoryManager extends DisposableObject {
1102
1103
throw new Error ( "Please select no more than 2 queries." ) ;
1103
1104
}
1104
1105
1105
- // otherwise, let the user choose
1106
+ // Otherwise, present a dialog so the user can choose the item they want to use.
1106
1107
const comparableQueryLabels = this . treeDataProvider . allHistory
1107
1108
. filter ( this . isSuccessfulCompletedLocalQueryInfo )
1108
1109
. filter (
You can’t perform that action at this time.
0 commit comments