|
60 | 60 | "onLanguage:gcode", |
61 | 61 | "onView:gcode.gcodeTree", |
62 | 62 | "onView:gcode.gcodeStats", |
| 63 | + "onCommand:gcode.addComment", |
| 64 | + "onCommand:gcode.addLineNumbers", |
| 65 | + "onCommand:gcode.removeComment", |
| 66 | + "onCommand:gcode.removeLineNumbers", |
| 67 | + "onCommand:gcode.showSettings", |
| 68 | + "onCommand:gcode.supportGCode", |
63 | 69 | "onCommand:gcode.views.navTree.refresh", |
64 | | - "onCommand:gcode.views.stats.refresh", |
65 | | - "onCommand:gcode.supportGCode" |
| 70 | + "onCommand:gcode.views.stats.refresh" |
66 | 71 | ], |
67 | 72 | "capabilities": { |
68 | 73 | "virtualWorkspaces": true |
|
353 | 358 | ], |
354 | 359 | "commandPalette": [ |
355 | 360 | { |
356 | | - "command": "gcode.views.navTree.refresh", |
357 | | - "when": "true" |
| 361 | + "command": "gcode.addComment", |
| 362 | + "when": "editorLangId == gcode" |
358 | 363 | }, |
359 | 364 | { |
360 | | - "command": "gcode.views.stats.refresh", |
| 365 | + "command": "gcode.addLineNumbers", |
| 366 | + "when": "editorLangId == gcode" |
| 367 | + }, |
| 368 | + { |
| 369 | + "command": "gcode.removeComment", |
| 370 | + "when": "editorLangId == gcode" |
| 371 | + }, |
| 372 | + { |
| 373 | + "command": "gcode.removeLineNumbers", |
| 374 | + "when": "editorLangId == gcode" |
| 375 | + }, |
| 376 | + { |
| 377 | + "command": "gcode.showSettings", |
361 | 378 | "when": "true" |
362 | 379 | }, |
363 | 380 | { |
364 | 381 | "command": "gcode.supportGCode", |
365 | 382 | "when": "false" |
| 383 | + }, |
| 384 | + { |
| 385 | + "command": "gcode.views.navTree.refresh", |
| 386 | + "when": "editorLangId == gcode" |
| 387 | + }, |
| 388 | + { |
| 389 | + "command": "gcode.views.stats.refresh", |
| 390 | + "when": "editorLangId == gcode" |
366 | 391 | } |
367 | 392 | ], |
368 | 393 | "editor/context": [ |
369 | 394 | { |
370 | | - "when": "resourceLangId == gcode", |
| 395 | + "when": "editorLangId == gcode", |
371 | 396 | "command": "gcode.views.navTree.refresh", |
372 | 397 | "group": "gcode" |
373 | 398 | }, |
374 | 399 | { |
375 | | - "when": "resourceLangId == gcode", |
| 400 | + "when": "editorLangId == gcode", |
376 | 401 | "command": "gcode.views.stats.refresh", |
377 | 402 | "group": "gcode" |
378 | 403 | }, |
379 | 404 | { |
380 | | - "when": "resourceLangId == gcode", |
| 405 | + "when": "editorLangId == gcode", |
381 | 406 | "command": "gcode.addComment", |
382 | 407 | "group": "gcode" |
383 | 408 | }, |
384 | 409 | { |
385 | | - "when": "resourceLangId == gcode", |
| 410 | + "when": "editorLangId == gcode", |
386 | 411 | "command": "gcode.removeComment", |
387 | 412 | "group": "gcode" |
| 413 | + }, |
| 414 | + { |
| 415 | + "when": "editorLangId == gcode", |
| 416 | + "command": "gcode.showSettings", |
| 417 | + "group": "gcode" |
388 | 418 | } |
389 | 419 | ] |
390 | 420 | }, |
|
464 | 494 | "pretest": "npm run compile", |
465 | 495 | "pretty": "prettier --config .prettierrc --loglevel warn .", |
466 | 496 | "pub": "vsce publish", |
| 497 | + "refresh": "npm run clean && shx rm -rf ./node_modules && npm install", |
467 | 498 | "test": "node ./out/test/runTests.js", |
468 | 499 | "test:unit": "SET TS_NODE_PROJECT=./tsconfig.tests.json && mocha -r ts-node/register test/unit/*.test.ts", |
469 | 500 | "vscode:prepublish": "npm run bundle", |
|
0 commit comments