|
38 | 38 | "onView:codeQLDatabases", |
39 | 39 | "onView:codeQLQueryHistory", |
40 | 40 | "onView:codeQLAstViewer", |
| 41 | + "onView:codeQLEvalLogViewer", |
41 | 42 | "onView:test-explorer", |
42 | 43 | "onCommand:codeQL.checkForUpdatesToCLI", |
43 | 44 | "onCommand:codeQL.authenticateToGitHub", |
|
527 | 528 | }, |
528 | 529 | { |
529 | 530 | "command": "codeQLQueryHistory.showEvalLog", |
530 | | - "title": "Show Evaluator Log (Raw)" |
| 531 | + "title": "Show Evaluator Log (Raw JSON)" |
531 | 532 | }, |
532 | 533 | { |
533 | 534 | "command": "codeQLQueryHistory.showEvalLogSummary", |
534 | | - "title": "Show Evaluator Log (Summary)" |
| 535 | + "title": "Show Evaluator Log (Summary Text)" |
| 536 | + }, |
| 537 | + { |
| 538 | + "command": "codeQLQueryHistory.showEvalLogViewer", |
| 539 | + "title": "Show Evaluator Log (UI)" |
535 | 540 | }, |
536 | 541 | { |
537 | 542 | "command": "codeQLQueryHistory.cancel", |
|
608 | 613 | "light": "media/light/clear-all.svg", |
609 | 614 | "dark": "media/dark/clear-all.svg" |
610 | 615 | } |
| 616 | + }, |
| 617 | + { |
| 618 | + "command": "codeQLEvalLogViewer.clear", |
| 619 | + "title": "Clear Viewer", |
| 620 | + "icon": { |
| 621 | + "light": "media/light/clear-all.svg", |
| 622 | + "dark": "media/dark/clear-all.svg" |
| 623 | + } |
611 | 624 | } |
612 | 625 | ], |
613 | 626 | "menus": { |
|
681 | 694 | "command": "codeQLAstViewer.clear", |
682 | 695 | "when": "view == codeQLAstViewer", |
683 | 696 | "group": "navigation" |
| 697 | + }, |
| 698 | + { |
| 699 | + "command": "codeQLEvalLogViewer.clear", |
| 700 | + "when": "view == codeQLEvalLogViewer", |
| 701 | + "group": "navigation" |
684 | 702 | } |
685 | 703 | ], |
686 | 704 | "view/item/context": [ |
|
754 | 772 | "group": "9_qlCommands", |
755 | 773 | "when": "codeql.supportsEvalLog && viewItem == rawResultsItem || codeql.supportsEvalLog && viewItem == interpretedResultsItem || codeql.supportsEvalLog && viewItem == cancelledResultsItem" |
756 | 774 | }, |
| 775 | + { |
| 776 | + "command": "codeQLQueryHistory.showEvalLogViewer", |
| 777 | + "group": "9_qlCommands", |
| 778 | + "when": "config.codeQL.canary && codeql.supportsEvalLog && viewItem == rawResultsItem || config.codeQL.canary && codeql.supportsEvalLog && viewItem == interpretedResultsItem || config.codeQL.canary && codeql.supportsEvalLog && viewItem == cancelledResultsItem" |
| 779 | + }, |
757 | 780 | { |
758 | 781 | "command": "codeQLQueryHistory.showQueryText", |
759 | 782 | "group": "9_qlCommands", |
|
975 | 998 | "command": "codeQLQueryHistory.showEvalLogSummary", |
976 | 999 | "when": "false" |
977 | 1000 | }, |
| 1001 | + { |
| 1002 | + "command": "codeQLQueryHistory.showEvalLogViewer", |
| 1003 | + "when": "false" |
| 1004 | + }, |
978 | 1005 | { |
979 | 1006 | "command": "codeQLQueryHistory.openQueryDirectory", |
980 | 1007 | "when": "false" |
|
1043 | 1070 | "command": "codeQLAstViewer.clear", |
1044 | 1071 | "when": "false" |
1045 | 1072 | }, |
| 1073 | + { |
| 1074 | + "command": "codeQLEvalLogViewer.clear", |
| 1075 | + "when": "false" |
| 1076 | + }, |
1046 | 1077 | { |
1047 | 1078 | "command": "codeQLTests.acceptOutput", |
1048 | 1079 | "when": "false" |
|
1109 | 1140 | { |
1110 | 1141 | "id": "codeQLAstViewer", |
1111 | 1142 | "name": "AST Viewer" |
| 1143 | + }, |
| 1144 | + { |
| 1145 | + "id": "codeQLEvalLogViewer", |
| 1146 | + "name": "Evaluator Log Viewer", |
| 1147 | + "when": "config.codeQL.canary" |
1112 | 1148 | } |
1113 | 1149 | ] |
1114 | 1150 | }, |
|
1124 | 1160 | { |
1125 | 1161 | "view": "codeQLDatabases", |
1126 | 1162 | "contents": "Add a CodeQL database:\n[From a folder](command:codeQLDatabases.chooseDatabaseFolder)\n[From an archive](command:codeQLDatabases.chooseDatabaseArchive)\n[From a URL (as a zip file)](command:codeQLDatabases.chooseDatabaseInternet)\n[From LGTM](command:codeQLDatabases.chooseDatabaseLgtm)" |
| 1163 | + }, |
| 1164 | + { |
| 1165 | + "view": "codeQLEvalLogViewer", |
| 1166 | + "contents": "Run the 'Show Evaluator Log (UI)' command on a CodeQL query run in the Query History view." |
1127 | 1167 | } |
1128 | 1168 | ] |
1129 | 1169 | }, |
|
0 commit comments