|
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" |
|
828 | 837 | "title": "CodeQL: Go to QL Code", |
829 | 838 | "enablement": "codeql.hasQLSource" |
830 | 839 | }, |
| 840 | + { |
| 841 | + "command": "codeQL.gotoQLContextEditor", |
| 842 | + "title": "CodeQL: Go to QL Code", |
| 843 | + "enablement": "codeql.hasQLSource" |
| 844 | + }, |
831 | 845 | { |
832 | 846 | "command": "codeQL.openDataExtensionsEditor", |
833 | 847 | "title": "CodeQL: Open Data Extensions Editor" |
|
1117 | 1131 | "when": "resourceExtname == .qlref" |
1118 | 1132 | }, |
1119 | 1133 | { |
1120 | | - "command": "codeQL.previewQueryHelp", |
| 1134 | + "command": "codeQL.previewQueryHelpContextExplorer", |
1121 | 1135 | "group": "9_qlCommands", |
1122 | 1136 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1123 | 1137 | } |
|
1203 | 1217 | "command": "codeQL.previewQueryHelp", |
1204 | 1218 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1205 | 1219 | }, |
| 1220 | + { |
| 1221 | + "command": "codeQL.previewQueryHelpContextEditor", |
| 1222 | + "when": "false" |
| 1223 | + }, |
| 1224 | + { |
| 1225 | + "command": "codeQL.previewQueryHelpContextExplorer", |
| 1226 | + "when": "false" |
| 1227 | + }, |
1206 | 1228 | { |
1207 | 1229 | "command": "codeQL.setCurrentDatabase", |
1208 | 1230 | "when": "false" |
|
1466 | 1488 | { |
1467 | 1489 | "command": "codeQLTests.acceptOutputContextTestItem", |
1468 | 1490 | "when": "false" |
| 1491 | + }, |
| 1492 | + { |
| 1493 | + "command": "codeQL.gotoQLContextEditor", |
| 1494 | + "when": "false" |
1469 | 1495 | } |
1470 | 1496 | ], |
1471 | 1497 | "editor/context": [ |
|
1510 | 1536 | "when": "resourceExtname == .qlref" |
1511 | 1537 | }, |
1512 | 1538 | { |
1513 | | - "command": "codeQL.previewQueryHelp", |
| 1539 | + "command": "codeQL.previewQueryHelpContextEditor", |
1514 | 1540 | "when": "resourceExtname == .qhelp && isWorkspaceTrusted" |
1515 | 1541 | }, |
1516 | 1542 | { |
1517 | | - "command": "codeQL.gotoQL", |
| 1543 | + "command": "codeQL.gotoQLContextEditor", |
1518 | 1544 | "when": "editorLangId == ql-summary && config.codeQL.canary" |
1519 | 1545 | } |
1520 | 1546 | ] |
|
1530 | 1556 | }, |
1531 | 1557 | "views": { |
1532 | 1558 | "ql-container": [ |
| 1559 | + { |
| 1560 | + "id": "codeQLQueries", |
| 1561 | + "name": "Queries", |
| 1562 | + "when": "config.codeQL.canary && config.codeQL.queriesPanel" |
| 1563 | + }, |
1533 | 1564 | { |
1534 | 1565 | "id": "codeQLDatabases", |
1535 | 1566 | "name": "Databases" |
|
0 commit comments