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 {
10861086 ) : Promise < CompletedLocalQueryInfo | undefined > {
10871087 const dbName = fromItem . initialInfo . databaseInfo . name ;
10881088
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.
10901091 if ( allItemsSelected . length === 2 ) {
10911092 const otherItem =
10921093 fromItem === allItemsSelected [ 0 ]
@@ -1102,7 +1103,7 @@ export class QueryHistoryManager extends DisposableObject {
11021103 throw new Error ( "Please select no more than 2 queries." ) ;
11031104 }
11041105
1105- // otherwise, let the user choose
1106+ // Otherwise, present a dialog so the user can choose the item they want to use.
11061107 const comparableQueryLabels = this . treeDataProvider . allHistory
11071108 . filter ( this . isSuccessfulCompletedLocalQueryInfo )
11081109 . filter (
You can’t perform that action at this time.
0 commit comments