We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ae6e91 commit 6f46bccCopy full SHA for 6f46bcc
extensions/ql-vscode/src/query-history.ts
@@ -554,7 +554,7 @@ the file in the file explorer and dragging it into the workspace.`
554
return otherQuery;
555
}
556
557
- if (multiSelect.length > 1) {
+ if (multiSelect?.length > 1) {
558
throw new Error('Please select no more than 2 queries.');
559
560
@@ -572,6 +572,9 @@ the file in the file explorer and dragging it into the workspace.`
572
detail: otherQuery.statusString,
573
query: otherQuery,
574
}));
575
+ if (comparableQueryLabels.length < 1) {
576
+ throw new Error('No other queries available to compare with.');
577
+ }
578
const choice = await vscode.window.showQuickPick(comparableQueryLabels);
579
return choice?.query;
580
0 commit comments