|
76 | 76 | "editor.wordBasedSuggestions": false |
77 | 77 | } |
78 | 78 | }, |
| 79 | + "debuggers": [ |
| 80 | + { |
| 81 | + "type": "codeql", |
| 82 | + "label": "CodeQL Debugger", |
| 83 | + "languages": [ |
| 84 | + "ql" |
| 85 | + ], |
| 86 | + "configurationAttributes": { |
| 87 | + "launch": { |
| 88 | + "properties": { |
| 89 | + "query": { |
| 90 | + "type": "string", |
| 91 | + "description": "Path to query file (.ql)", |
| 92 | + "default": "${file}" |
| 93 | + }, |
| 94 | + "database": { |
| 95 | + "type": "string", |
| 96 | + "description": "Path to the target database" |
| 97 | + }, |
| 98 | + "additionalPacks": { |
| 99 | + "type": [ |
| 100 | + "array", |
| 101 | + "string" |
| 102 | + ], |
| 103 | + "description": "Additional folders to search for library packs. Defaults to searching all workspace folders." |
| 104 | + }, |
| 105 | + "extensionPacks": { |
| 106 | + "type": [ |
| 107 | + "array", |
| 108 | + "string" |
| 109 | + ], |
| 110 | + "description": "Names of extension packs to include in the evaluation. These are resolved from the locations specified in `additionalPacks`." |
| 111 | + } |
| 112 | + } |
| 113 | + } |
| 114 | + }, |
| 115 | + "variables": { |
| 116 | + "currentDatabase": "codeQL.getCurrentDatabase", |
| 117 | + "currentQuery": "codeQL.getCurrentQuery" |
| 118 | + } |
| 119 | + } |
| 120 | + ], |
79 | 121 | "jsonValidation": [ |
80 | 122 | { |
81 | 123 | "fileMatch": "GitHub.vscode-codeql/databases.json", |
|
314 | 356 | "command": "codeQL.runQueryContextEditor", |
315 | 357 | "title": "CodeQL: Run Query on Selected Database" |
316 | 358 | }, |
| 359 | + { |
| 360 | + "command": "codeQL.debugQuery", |
| 361 | + "title": "CodeQL: Debug Query" |
| 362 | + }, |
| 363 | + { |
| 364 | + "command": "codeQL.debugQueryContextEditor", |
| 365 | + "title": "CodeQL: Debug Query" |
| 366 | + }, |
| 367 | + { |
| 368 | + "command": "codeQL.startDebuggingSelection", |
| 369 | + "title": "CodeQL: Debug Selection" |
| 370 | + }, |
| 371 | + { |
| 372 | + "command": "codeQL.startDebuggingSelectionContextEditor", |
| 373 | + "title": "CodeQL: Debug Selection" |
| 374 | + }, |
| 375 | + { |
| 376 | + "command": "codeQL.continueDebuggingSelection", |
| 377 | + "title": "CodeQL: Debug Selection" |
| 378 | + }, |
| 379 | + { |
| 380 | + "command": "codeQL.continueDebuggingSelectionContextEditor", |
| 381 | + "title": "CodeQL: Debug Selection" |
| 382 | + }, |
317 | 383 | { |
318 | 384 | "command": "codeQL.runQueryOnMultipleDatabases", |
319 | 385 | "title": "CodeQL: Run Query on Multiple Databases" |
|
453 | 519 | "command": "codeQL.setCurrentDatabase", |
454 | 520 | "title": "CodeQL: Set Current Database" |
455 | 521 | }, |
| 522 | + { |
| 523 | + "command": "codeQL.getCurrentDatabase", |
| 524 | + "title": "CodeQL: Get Current Database" |
| 525 | + }, |
| 526 | + { |
| 527 | + "command": "codeQL.getCurrentQuery", |
| 528 | + "title": "CodeQL: Get Current Query" |
| 529 | + }, |
456 | 530 | { |
457 | 531 | "command": "codeQL.viewAst", |
458 | 532 | "title": "CodeQL: View AST" |
|
1038 | 1112 | "command": "codeQL.runQueryContextEditor", |
1039 | 1113 | "when": "false" |
1040 | 1114 | }, |
| 1115 | + { |
| 1116 | + "command": "codeQL.debugQuery", |
| 1117 | + "when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql && !inDebugMode" |
| 1118 | + }, |
| 1119 | + { |
| 1120 | + "command": "codeQL.debugQueryContextEditor", |
| 1121 | + "when": "false" |
| 1122 | + }, |
| 1123 | + { |
| 1124 | + "command": "codeQL.startDebuggingSelection", |
| 1125 | + "when": "config.codeQL.canary && editorLangId == ql && debugState == inactive && debugConfigurationType == codeql" |
| 1126 | + }, |
| 1127 | + { |
| 1128 | + "command": "codeQL.startDebuggingSelectionContextEditor", |
| 1129 | + "when": "false" |
| 1130 | + }, |
| 1131 | + { |
| 1132 | + "command": "codeQL.continueDebuggingSelection", |
| 1133 | + "when": "config.codeQL.canary && editorLangId == ql && debugState == stopped && debugType == codeql" |
| 1134 | + }, |
| 1135 | + { |
| 1136 | + "command": "codeQL.continueDebuggingSelectionContextEditor", |
| 1137 | + "when": "false" |
| 1138 | + }, |
1041 | 1139 | { |
1042 | 1140 | "command": "codeQL.runQueryOnMultipleDatabases", |
1043 | 1141 | "when": "resourceLangId == ql && resourceExtname == .ql" |
|
1086 | 1184 | "command": "codeQL.setCurrentDatabase", |
1087 | 1185 | "when": "false" |
1088 | 1186 | }, |
| 1187 | + { |
| 1188 | + "command": "codeQL.getCurrentDatabase", |
| 1189 | + "when": "false" |
| 1190 | + }, |
| 1191 | + { |
| 1192 | + "command": "codeQL.getCurrentQuery", |
| 1193 | + "when": "false" |
| 1194 | + }, |
1089 | 1195 | { |
1090 | 1196 | "command": "codeQL.viewAst", |
1091 | 1197 | "when": "resourceScheme == codeql-zip-archive" |
|
1350 | 1456 | "editor/context": [ |
1351 | 1457 | { |
1352 | 1458 | "command": "codeQL.runQueryContextEditor", |
1353 | | - "when": "editorLangId == ql && resourceExtname == .ql" |
| 1459 | + "when": "editorLangId == ql && resourceExtname == .ql && !inDebugMode" |
1354 | 1460 | }, |
1355 | 1461 | { |
1356 | 1462 | "command": "codeQL.runQueryOnMultipleDatabasesContextEditor", |
|
1370 | 1476 | }, |
1371 | 1477 | { |
1372 | 1478 | "command": "codeQL.quickEvalContextEditor", |
1373 | | - "when": "editorLangId == ql" |
| 1479 | + "when": "editorLangId == ql && debugState == inactive" |
| 1480 | + }, |
| 1481 | + { |
| 1482 | + "command": "codeQL.debugQueryContextEditor", |
| 1483 | + "when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql && !inDebugMode" |
| 1484 | + }, |
| 1485 | + { |
| 1486 | + "command": "codeQL.startDebuggingSelectionContextEditor", |
| 1487 | + "when": "config.codeQL.canary && editorLangId == ql && debugState == inactive && debugConfigurationType == codeql" |
| 1488 | + }, |
| 1489 | + { |
| 1490 | + "command": "codeQL.continueDebuggingSelectionContextEditor", |
| 1491 | + "when": "config.codeQL.canary && editorLangId == ql && debugState == stopped && debugType == codeql" |
1374 | 1492 | }, |
1375 | 1493 | { |
1376 | 1494 | "command": "codeQL.openReferencedFileContextEditor", |
|
1471 | 1589 | "@octokit/plugin-retry": "^3.0.9", |
1472 | 1590 | "@octokit/rest": "^19.0.4", |
1473 | 1591 | "@vscode/codicons": "^0.0.31", |
| 1592 | + "@vscode/debugadapter": "^1.59.0", |
| 1593 | + "@vscode/debugprotocol": "^1.59.0", |
1474 | 1594 | "@vscode/webview-ui-toolkit": "^1.0.1", |
1475 | 1595 | "ajv": "^8.11.0", |
1476 | 1596 | "child-process-promise": "^2.2.1", |
|
0 commit comments