|
80 | 80 | "test": "npm run compile && node ./node_modules/vscode/bin/test" |
81 | 81 | }, |
82 | 82 | "devDependencies": { |
| 83 | + "@babel/core": "^7.24.7", |
| 84 | + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", |
| 85 | + "@babel/preset-env": "^7.24.7", |
83 | 86 | "@types/ftp": "^0.3.31", |
84 | 87 | "@types/iconv-lite": "0.0.1", |
85 | 88 | "@types/ini": "^1.3.30", |
|
90 | 93 | "@types/vscode": "1.67.0", |
91 | 94 | "@types/x2js": "^3.1.0", |
92 | 95 | "@types/xml2js": "^0.4.11", |
| 96 | + "babel-loader": "^8.3.0", |
93 | 97 | "ts-loader": "^6.2.1", |
94 | 98 | "tslint": "^5.20.1", |
95 | 99 | "typescript": "^3.7.3", |
|
100 | 104 | "iconv-lite": "^0.5.0", |
101 | 105 | "ini": "^2.0.0", |
102 | 106 | "jsonc": "^2.0.0", |
| 107 | + "jsonc-parser": "^3.2.1", |
103 | 108 | "mathjs": "^11.5.0", |
104 | 109 | "micromatch": "^4.0.4", |
105 | 110 | "node-7z": "^3.0.0", |
|
219 | 224 | "EIDE.Cpptools.ForceInclude": { |
220 | 225 | "type": "array", |
221 | 226 | "items": { |
222 | | - "type": "string" |
223 | | - }, |
| 227 | + "type": "string" |
| 228 | + }, |
224 | 229 | "scope": "resource", |
225 | 230 | "markdownDescription": "Force include file path list for c/c++ plug-in intellisence", |
226 | 231 | "default": [] |
|
294 | 299 | "EIDE.Builder.EnvironmentVariables": { |
295 | 300 | "type": "array", |
296 | 301 | "items": { |
297 | | - "type": "string" |
298 | | - }, |
| 302 | + "type": "string" |
| 303 | + }, |
299 | 304 | "scope": "resource", |
300 | 305 | "markdownDescription": "%settings.builder.presetEnvVars%", |
301 | 306 | "default": [ |
|
902 | 907 | } |
903 | 908 | }, |
904 | 909 | { |
905 | | - "command": "_cl.eide.project.genDebugConfigTemplate", |
906 | | - "title": "%eide.flash.gen.dbgconf%" |
| 910 | + "command": "_cl.eide.project.genDebugConfigTemplate.jlink", |
| 911 | + "title": "JLink" |
| 912 | + }, |
| 913 | + { |
| 914 | + "command": "_cl.eide.project.genDebugConfigTemplate.openocd", |
| 915 | + "title": "OpenOCD (stlink,daplink...)" |
| 916 | + }, |
| 917 | + { |
| 918 | + "command": "_cl.eide.project.genDebugConfigTemplate.pyocd", |
| 919 | + "title": "pyOCD (daplink,stlink...)" |
907 | 920 | }, |
908 | 921 | { |
909 | 922 | "command": "_cl.eide.project.fetchShellFlasher", |
|
1101 | 1114 | { |
1102 | 1115 | "id": "_cl.eide.menu/ui/project/export", |
1103 | 1116 | "label": "%eide.prj.menus.main.export%" |
| 1117 | + }, |
| 1118 | + { |
| 1119 | + "id": "_cl.eide.menu/ui/project/gen-debug-cfg", |
| 1120 | + "label": "%eide.flash.gen.dbgconf%" |
1104 | 1121 | } |
1105 | 1122 | ], |
1106 | 1123 | "menus": { |
|
1277 | 1294 | "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
1278 | 1295 | "group": "5_group@3" |
1279 | 1296 | }, |
| 1297 | + { |
| 1298 | + "submenu": "_cl.eide.menu/ui/project/gen-debug-cfg", |
| 1299 | + "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
| 1300 | + "group": "5_group@3" |
| 1301 | + }, |
1280 | 1302 | { |
1281 | 1303 | "command": "_cl.eide.project.showBuildParams", |
1282 | 1304 | "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
|
1295 | 1317 | "submenu": "_cl.eide.menu/ui/project/static-check", |
1296 | 1318 | "group": "z_group0@0" |
1297 | 1319 | }, |
1298 | | - |
1299 | | - |
1300 | 1320 | { |
1301 | 1321 | "command": "_cl.eide.project.addSrcDir", |
1302 | 1322 | "group": "inline", |
|
1332 | 1352 | "when": "viewItem == PROJECT && view == cl.eide.view.projects", |
1333 | 1353 | "group": "z_group0@1" |
1334 | 1354 | }, |
1335 | | - |
1336 | | - |
1337 | 1355 | { |
1338 | 1356 | "command": "_cl.eide.project.sourceRoot.refresh", |
1339 | 1357 | "group": "inline@0", |
|
1419 | 1437 | "when": "viewItem == OUTPUT_FILE_ITEM || viewItem == FILE_ITEM || viewItem == EXCFILE_ITEM || viewItem == V_FILE_ITEM || viewItem == V_EXCFILE_ITEM && view == cl.eide.view.projects", |
1420 | 1438 | "group": "z_group1@1" |
1421 | 1439 | }, |
1422 | | - |
1423 | | - |
1424 | 1440 | { |
1425 | 1441 | "command": "_cl.eide.project.addPackage", |
1426 | 1442 | "group": "inline", |
|
1452 | 1468 | "command": "_cl.eide.project.installCmsisDriverInterface", |
1453 | 1469 | "when": "viewItem == PACK && view == cl.eide.view.projects" |
1454 | 1470 | }, |
1455 | | - |
1456 | | - |
1457 | 1471 | { |
1458 | 1472 | "command": "_cl.eide.project.switchToolchain", |
1459 | 1473 | "group": "inline", |
|
1468 | 1482 | "group": "inline", |
1469 | 1483 | "when": "viewItem == UPLOAD_OPTION || viewItem == UPLOAD_OPTION_Shell && view == cl.eide.view.projects" |
1470 | 1484 | }, |
1471 | | - { |
1472 | | - "command": "_cl.eide.project.genDebugConfigTemplate", |
1473 | | - "when": "viewItem == SOLUTION || viewItem == UPLOAD_OPTION || viewItem == UPLOAD_OPTION_Shell && view == cl.eide.view.projects", |
1474 | | - "group": "5_group@3" |
1475 | | - }, |
1476 | 1485 | { |
1477 | 1486 | "command": "_cl.eide.project.fetchShellFlasher", |
1478 | 1487 | "group": "inline", |
|
1576 | 1585 | "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
1577 | 1586 | "group": "z_group1@1" |
1578 | 1587 | } |
| 1588 | + ], |
| 1589 | + "_cl.eide.menu/ui/project/gen-debug-cfg": [ |
| 1590 | + { |
| 1591 | + "command": "_cl.eide.project.genDebugConfigTemplate.jlink", |
| 1592 | + "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
| 1593 | + "group": "z_group0@0" |
| 1594 | + }, |
| 1595 | + { |
| 1596 | + "command": "_cl.eide.project.genDebugConfigTemplate.openocd", |
| 1597 | + "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
| 1598 | + "group": "z_group0@1" |
| 1599 | + }, |
| 1600 | + { |
| 1601 | + "command": "_cl.eide.project.genDebugConfigTemplate.pyocd", |
| 1602 | + "when": "viewItem == SOLUTION && view == cl.eide.view.projects", |
| 1603 | + "group": "z_group0@2" |
| 1604 | + } |
1579 | 1605 | ] |
1580 | 1606 | }, |
1581 | 1607 | "snippets": [ |
|
0 commit comments