|
59 | 59 | "activationEvents": [ |
60 | 60 | "onLanguage:gcode", |
61 | 61 | "onView:gcode.gcodeTree", |
62 | | - "onView:gcode.gcodeStats", |
63 | | - "onCommand:gcode.views.navTree.refresh", |
64 | | - "onCommand:gcode.views.stats.refresh", |
65 | | - "onCommand:gcode.supportGCode" |
| 62 | + "onView:gcode.gcodeStats" |
66 | 63 | ], |
67 | 64 | "capabilities": { |
68 | 65 | "virtualWorkspaces": true |
|
165 | 162 | "enum": [ |
166 | 163 | "Mill", |
167 | 164 | "Lathe", |
168 | | - "3D Printer" |
| 165 | + "3D Printer", |
| 166 | + "Swiss", |
| 167 | + "Laser", |
| 168 | + "EDM" |
169 | 169 | ], |
170 | 170 | "enumDescriptions": [ |
171 | 171 | "Configure G-Code Extension for CNC Mill", |
172 | 172 | "Configure G-Code Extension for CNC Lathe", |
173 | | - "Configure G-Code Extension for 3D Printers" |
| 173 | + "Configure G-Code Extension for 3D Printers", |
| 174 | + "Configure G-Code Extension for Swiss-style Lathes", |
| 175 | + "Configure G-Code Extension for Laser Machine Tools", |
| 176 | + "Configure G-Code Extension for EDM" |
174 | 177 | ], |
175 | 178 | "markdownDescription": "Configure G-Code Extension for a Specific Machine Type", |
176 | 179 | "scope": "window" |
|
217 | 220 | "enum": [ |
218 | 221 | "silent", |
219 | 222 | "errors", |
| 223 | + "warnings", |
220 | 224 | "verbose", |
221 | 225 | "debug" |
222 | 226 | ], |
|
347 | 351 | ], |
348 | 352 | "commandPalette": [ |
349 | 353 | { |
350 | | - "command": "gcode.views.navTree.refresh", |
351 | | - "when": "true" |
| 354 | + "command": "gcode.addComment", |
| 355 | + "when": "editorLangId == gcode" |
352 | 356 | }, |
353 | 357 | { |
354 | | - "command": "gcode.views.stats.refresh", |
| 358 | + "command": "gcode.addLineNumbers", |
| 359 | + "when": "editorLangId == gcode" |
| 360 | + }, |
| 361 | + { |
| 362 | + "command": "gcode.removeComment", |
| 363 | + "when": "editorLangId == gcode" |
| 364 | + }, |
| 365 | + { |
| 366 | + "command": "gcode.removeLineNumbers", |
| 367 | + "when": "editorLangId == gcode" |
| 368 | + }, |
| 369 | + { |
| 370 | + "command": "gcode.showSettings", |
355 | 371 | "when": "true" |
356 | 372 | }, |
357 | 373 | { |
358 | 374 | "command": "gcode.supportGCode", |
359 | 375 | "when": "false" |
| 376 | + }, |
| 377 | + { |
| 378 | + "command": "gcode.views.navTree.refresh", |
| 379 | + "when": "editorLangId == gcode" |
| 380 | + }, |
| 381 | + { |
| 382 | + "command": "gcode.views.stats.refresh", |
| 383 | + "when": "editorLangId == gcode" |
360 | 384 | } |
361 | 385 | ], |
362 | 386 | "editor/context": [ |
363 | 387 | { |
364 | | - "when": "resourceLangId == gcode", |
| 388 | + "when": "editorLangId == gcode", |
365 | 389 | "command": "gcode.views.navTree.refresh", |
366 | 390 | "group": "gcode" |
367 | 391 | }, |
368 | 392 | { |
369 | | - "when": "resourceLangId == gcode", |
| 393 | + "when": "editorLangId == gcode", |
370 | 394 | "command": "gcode.views.stats.refresh", |
371 | 395 | "group": "gcode" |
372 | 396 | }, |
373 | 397 | { |
374 | | - "when": "resourceLangId == gcode", |
| 398 | + "when": "editorLangId == gcode", |
375 | 399 | "command": "gcode.addComment", |
376 | 400 | "group": "gcode" |
377 | 401 | }, |
378 | 402 | { |
379 | | - "when": "resourceLangId == gcode", |
| 403 | + "when": "editorLangId == gcode", |
380 | 404 | "command": "gcode.removeComment", |
381 | 405 | "group": "gcode" |
| 406 | + }, |
| 407 | + { |
| 408 | + "when": "editorLangId == gcode", |
| 409 | + "command": "gcode.showSettings", |
| 410 | + "group": "gcode" |
382 | 411 | } |
383 | 412 | ] |
384 | 413 | }, |
|
448 | 477 | }, |
449 | 478 | "scripts": { |
450 | 479 | "analyze:bundle": "webpack --env analyzeBundle", |
| 480 | + "build": "webpack -mode development", |
451 | 481 | "bundle": "webpack --mode production", |
452 | 482 | "clean": "shx rm -rf out/* && rm -rf dist/*", |
453 | 483 | "compile": "tsc -p ./", |
|
457 | 487 | "pretest": "npm run compile", |
458 | 488 | "pretty": "prettier --config .prettierrc --loglevel warn .", |
459 | 489 | "pub": "vsce publish", |
| 490 | + "refresh": "npm run clean && shx rm -rf ./node_modules && npm install", |
460 | 491 | "test": "node ./out/test/runTests.js", |
461 | | - "test:unit": "SET TS_NODE_PROJECT=./tsconfig.tests.json&& mocha -r ts-node/register test/unit/*.test.ts", |
| 492 | + "test:unit": "SET TS_NODE_PROJECT=./tsconfig.tests.json && mocha -r ts-node/register test/unit/*.test.ts", |
462 | 493 | "vscode:prepublish": "npm run bundle", |
463 | 494 | "webpack": "webpack --mode development", |
464 | 495 | "webpack-dev": "webpack --mode development --watch" |
|
0 commit comments