|
36 | 36 | "activationEvents": [ |
37 | 37 | "onLanguage:ql", |
38 | 38 | "onLanguage:ql-summary", |
| 39 | + "onView:codeQLQueries", |
39 | 40 | "onView:codeQLDatabases", |
40 | 41 | "onView:codeQLVariantAnalysisRepositories", |
41 | 42 | "onView:codeQLQueryHistory", |
|
476 | 477 | "command": "codeQL.previewQueryHelp", |
477 | 478 | "title": "CodeQL: Preview Query Help" |
478 | 479 | }, |
| 480 | + { |
| 481 | + "command": "codeQL.previewQueryHelpContextExplorer", |
| 482 | + "title": "CodeQL: Preview Query Help" |
| 483 | + }, |
| 484 | + { |
| 485 | + "command": "codeQL.previewQueryHelpContextEditor", |
| 486 | + "title": "CodeQL: Preview Query Help" |
| 487 | + }, |
479 | 488 | { |
480 | 489 | "command": "codeQL.quickQuery", |
481 | 490 | "title": "CodeQL: Quick Query" |
|
507 | 516 | "title": "Add new list", |
508 | 517 | "icon": "$(new-folder)" |
509 | 518 | }, |
| 519 | + { |
| 520 | + "command": "codeQLVariantAnalysisRepositories.importFromCodeSearch", |
| 521 | + "title": "Add repositories with GitHub Code Search" |
| 522 | + }, |
510 | 523 | { |
511 | 524 | "command": "codeQLVariantAnalysisRepositories.setSelectedItem", |
512 | 525 | "title": "Select" |
|
828 | 841 | "title": "CodeQL: Go to QL Code", |
829 | 842 | "enablement": "codeql.hasQLSource" |
830 | 843 | }, |
| 844 | + { |
| 845 | + "command": "codeQL.gotoQLContextEditor", |
| 846 | + "title": "CodeQL: Go to QL Code", |
| 847 | + "enablement": "codeql.hasQLSource" |
| 848 | + }, |
831 | 849 | { |
832 | 850 | "command": "codeQL.openDataExtensionsEditor", |
833 | 851 | "title": "CodeQL: Open Data Extensions Editor" |
|
947 | 965 | "when": "view == codeQLVariantAnalysisRepositories && viewItem =~ /canBeOpenedOnGitHub/", |
948 | 966 | "group": "2_qlContextMenu@1" |
949 | 967 | }, |
| 968 | + { |
| 969 | + "command": "codeQLVariantAnalysisRepositories.importFromCodeSearch", |
| 970 | + "when": "view == codeQLVariantAnalysisRepositories && viewItem =~ /canImportCodeSearch/", |
| 971 | + "group": "2_qlContextMenu@1" |
| 972 | + }, |
950 | 973 | { |
951 | 974 | "command": "codeQLDatabases.setCurrentDatabase", |
952 | 975 | "group": "inline", |
|
1117 | 1140 | "when": "resourceExtname == .qlref" |
1118 | 1141 | }, |
1119 | 1142 | { |
1120 | | - "command": "codeQL.previewQueryHelp", |
| 1143 | + "command": "codeQL.previewQueryHelpContextExplorer", |
1121 | 1144 | "group": "9_qlCommands", |
1122 | 1145 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1123 | 1146 | } |
|
1203 | 1226 | "command": "codeQL.previewQueryHelp", |
1204 | 1227 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1205 | 1228 | }, |
| 1229 | + { |
| 1230 | + "command": "codeQL.previewQueryHelpContextEditor", |
| 1231 | + "when": "false" |
| 1232 | + }, |
| 1233 | + { |
| 1234 | + "command": "codeQL.previewQueryHelpContextExplorer", |
| 1235 | + "when": "false" |
| 1236 | + }, |
1206 | 1237 | { |
1207 | 1238 | "command": "codeQL.setCurrentDatabase", |
1208 | 1239 | "when": "false" |
|
1275 | 1306 | "command": "codeQLVariantAnalysisRepositories.removeItemContextMenu", |
1276 | 1307 | "when": "false" |
1277 | 1308 | }, |
| 1309 | + { |
| 1310 | + "command": "codeQLVariantAnalysisRepositories.importFromCodeSearch", |
| 1311 | + "when": "false" |
| 1312 | + }, |
1278 | 1313 | { |
1279 | 1314 | "command": "codeQLDatabases.setCurrentDatabase", |
1280 | 1315 | "when": "false" |
|
1466 | 1501 | { |
1467 | 1502 | "command": "codeQLTests.acceptOutputContextTestItem", |
1468 | 1503 | "when": "false" |
| 1504 | + }, |
| 1505 | + { |
| 1506 | + "command": "codeQL.gotoQLContextEditor", |
| 1507 | + "when": "false" |
1469 | 1508 | } |
1470 | 1509 | ], |
1471 | 1510 | "editor/context": [ |
|
1510 | 1549 | "when": "resourceExtname == .qlref" |
1511 | 1550 | }, |
1512 | 1551 | { |
1513 | | - "command": "codeQL.previewQueryHelp", |
| 1552 | + "command": "codeQL.previewQueryHelpContextEditor", |
1514 | 1553 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1515 | 1554 | }, |
1516 | 1555 | { |
1517 | | - "command": "codeQL.gotoQL", |
| 1556 | + "command": "codeQL.gotoQLContextEditor", |
1518 | 1557 | "when": "editorLangId == ql-summary && config.codeQL.canary" |
1519 | 1558 | } |
1520 | 1559 | ] |
|
1530 | 1569 | }, |
1531 | 1570 | "views": { |
1532 | 1571 | "ql-container": [ |
| 1572 | + { |
| 1573 | + "id": "codeQLQueries", |
| 1574 | + "name": "Queries", |
| 1575 | + "when": "config.codeQL.canary && config.codeQL.queriesPanel" |
| 1576 | + }, |
1533 | 1577 | { |
1534 | 1578 | "id": "codeQLDatabases", |
1535 | 1579 | "name": "Databases" |
|
1562 | 1606 | "view": "codeQLQueryHistory", |
1563 | 1607 | "contents": "You have no query history items at the moment.\n\nSelect a database to run a CodeQL query and get your first results." |
1564 | 1608 | }, |
| 1609 | + { |
| 1610 | + "view": "codeQLQueries", |
| 1611 | + "contents": "This workspace doesn't contain any CodeQL queries at the moment." |
| 1612 | + }, |
1565 | 1613 | { |
1566 | 1614 | "view": "codeQLDatabases", |
1567 | 1615 | "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 GitHub](command:codeQLDatabases.chooseDatabaseGithub)" |
|
0 commit comments