|
668 | 668 | { |
669 | 669 | "command": "codeQLQueryHistory.removeHistoryItem", |
670 | 670 | "group": "9_qlCommands", |
671 | | - "when": "view == codeQLQueryHistory && viewItem != inProgressResultsItem" |
| 671 | + "when": "viewItem == interpretedResultsItem || viewItem == rawResultsItem || viewItem == cancelledResultsItem" |
672 | 672 | }, |
673 | 673 | { |
674 | 674 | "command": "codeQLQueryHistory.setLabel", |
|
678 | 678 | { |
679 | 679 | "command": "codeQLQueryHistory.compareWith", |
680 | 680 | "group": "9_qlCommands", |
681 | | - "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
| 681 | + "when": "viewItem == rawResultsItem || viewItem == interpretedResultsItem" |
682 | 682 | }, |
683 | 683 | { |
684 | 684 | "command": "codeQLQueryHistory.showQueryLog", |
685 | 685 | "group": "9_qlCommands", |
686 | | - "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
| 686 | + "when": "viewItem == rawResultsItem || viewItem == interpretedResultsItem" |
687 | 687 | }, |
688 | 688 | { |
689 | 689 | "command": "codeQLQueryHistory.showQueryText", |
|
693 | 693 | { |
694 | 694 | "command": "codeQLQueryHistory.viewCsvResults", |
695 | 695 | "group": "9_qlCommands", |
696 | | - "when": "view == codeQLQueryHistory && viewItem == rawResultsItem" |
| 696 | + "when": "viewItem == rawResultsItem" |
697 | 697 | }, |
698 | 698 | { |
699 | 699 | "command": "codeQLQueryHistory.viewCsvAlerts", |
700 | 700 | "group": "9_qlCommands", |
701 | | - "when": "view == codeQLQueryHistory && viewItem == interpretedResultsItem" |
| 701 | + "when": "viewItem == interpretedResultsItem" |
702 | 702 | }, |
703 | 703 | { |
704 | 704 | "command": "codeQLQueryHistory.viewSarifAlerts", |
705 | 705 | "group": "9_qlCommands", |
706 | | - "when": "view == codeQLQueryHistory && viewItem == interpretedResultsItem" |
| 706 | + "when": "viewItem == interpretedResultsItem" |
707 | 707 | }, |
708 | 708 | { |
709 | 709 | "command": "codeQLQueryHistory.viewDil", |
710 | 710 | "group": "9_qlCommands", |
711 | | - "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
| 711 | + "when": "viewItem == rawResultsItem || viewItem == interpretedResultsItem" |
712 | 712 | }, |
713 | 713 | { |
714 | 714 | "command": "codeQLQueryHistory.cancel", |
715 | 715 | "group": "9_qlCommands", |
716 | | - "when": "view == codeQLQueryHistory && viewItem == inProgressResultsItem" |
| 716 | + "when": "viewItem == inProgressResultsItem" |
717 | 717 | }, |
718 | 718 | { |
719 | 719 | "command": "codeQLTests.showOutputDifferences", |
720 | 720 | "group": "qltest@1", |
721 | | - "when": "view == test-explorer && viewItem == testWithSource" |
| 721 | + "when": "viewItem == testWithSource" |
722 | 722 | }, |
723 | 723 | { |
724 | 724 | "command": "codeQLTests.acceptOutput", |
725 | 725 | "group": "qltest@2", |
726 | | - "when": "view == test-explorer && viewItem == testWithSource" |
| 726 | + "when": "viewItem == testWithSource" |
727 | 727 | } |
728 | 728 | ], |
729 | 729 | "explorer/context": [ |
|
0 commit comments