|
67 | 67 | ], |
68 | 68 | "main": "./dist/main", |
69 | 69 | "contributes": { |
| 70 | + "icons": { |
| 71 | + "cmake-tools-build": { |
| 72 | + "description": "CMake build icon", |
| 73 | + "default": { |
| 74 | + "fontPath": "./res/product-icons.woff2", |
| 75 | + "fontCharacter": "\\E001" |
| 76 | + } |
| 77 | + }, |
| 78 | + "cmake-tools-clean-configure": { |
| 79 | + "description": "CMake clean configure icon", |
| 80 | + "default": { |
| 81 | + "fontPath": "./res/product-icons.woff2", |
| 82 | + "fontCharacter": "\\E002" |
| 83 | + } |
| 84 | + }, |
| 85 | + "cmake-tools-clean": { |
| 86 | + "description": "CMake clean icon", |
| 87 | + "default": { |
| 88 | + "fontPath": "./res/product-icons.woff2", |
| 89 | + "fontCharacter": "\\E003" |
| 90 | + } |
| 91 | + }, |
| 92 | + "cmake-tools-cmake-view-1": { |
| 93 | + "description": "CMake view icon 1", |
| 94 | + "default": { |
| 95 | + "fontPath": "./res/product-icons.woff2", |
| 96 | + "fontCharacter": "\\E004" |
| 97 | + } |
| 98 | + }, |
| 99 | + "cmake-tools-cmake-view-2": { |
| 100 | + "description": "CMake view icon 2", |
| 101 | + "default": { |
| 102 | + "fontPath": "./res/product-icons.woff2", |
| 103 | + "fontCharacter": "\\E005" |
| 104 | + } |
| 105 | + }, |
| 106 | + "cmake-tools-configure": { |
| 107 | + "description": "CMake configure icon", |
| 108 | + "default": { |
| 109 | + "fontPath": "./res/product-icons.woff2", |
| 110 | + "fontCharacter": "\\E006" |
| 111 | + } |
| 112 | + } |
| 113 | + }, |
70 | 114 | "commands": [ |
71 | 115 | { |
72 | 116 | "command": "cmake.openCMakePresets", |
|
299 | 343 | { |
300 | 344 | "command": "cmake.outline.configure", |
301 | 345 | "title": "%cmake-tools.command.cmake.configure.title%", |
302 | | - "icon": { |
303 | | - "dark": "res/dark/configure-icon.svg", |
304 | | - "light": "res/light/configure-icon.svg" |
305 | | - } |
| 346 | + "icon": "$(cmake-tools-configure)" |
306 | 347 | }, |
307 | 348 | { |
308 | 349 | "command": "cmake.projectStatus.configure", |
309 | 350 | "title": "%cmake-tools.command.cmake.configure.title%", |
310 | | - "icon": { |
311 | | - "dark": "res/dark/configure-icon.svg", |
312 | | - "light": "res/light/configure-icon.svg" |
313 | | - }, |
| 351 | + "icon": "$(cmake-tools-configure)", |
314 | 352 | "when": "cmake:enableFullFeatureSet", |
315 | 353 | "category": "CMake" |
316 | 354 | }, |
|
339 | 377 | { |
340 | 378 | "command": "cmake.outline.configureAll", |
341 | 379 | "title": "%cmake-tools.command.cmake.configureAll.title%", |
342 | | - "icon": { |
343 | | - "dark": "res/dark/configure-icon.svg", |
344 | | - "light": "res/light/configure-icon.svg" |
345 | | - } |
| 380 | + "icon": "$(cmake-tools-configure)" |
346 | 381 | }, |
347 | 382 | { |
348 | 383 | "command": "cmake.outline.configureAllWithDebugger", |
|
360 | 395 | "command": "cmake.outline.build", |
361 | 396 | "title": "%cmake-tools.command.cmake.build.title%", |
362 | 397 | "when": "cmake:enableFullFeatureSet", |
363 | | - "icon": { |
364 | | - "dark": "res/dark/build-icon.svg", |
365 | | - "light": "res/light/build-icon.svg" |
366 | | - } |
| 398 | + "icon": "$(cmake-tools-build)" |
367 | 399 | }, |
368 | 400 | { |
369 | 401 | "command": "cmake.projectStatus.build", |
370 | 402 | "title": "%cmake-tools.command.cmake.build.title%", |
371 | 403 | "when": "cmake:enableFullFeatureSet", |
372 | | - "icon": { |
373 | | - "dark": "res/dark/build-icon.svg", |
374 | | - "light": "res/light/build-icon.svg" |
375 | | - } |
| 404 | + "icon": "$(cmake-tools-build)" |
376 | 405 | }, |
377 | 406 | { |
378 | 407 | "command": "cmake.outline.buildTarget", |
379 | 408 | "title": "%cmake-tools.command.cmake.build.title%", |
380 | 409 | "when": "cmake:enableFullFeatureSet", |
381 | | - "icon": { |
382 | | - "dark": "res/dark/build-icon.svg", |
383 | | - "light": "res/light/build-icon.svg" |
384 | | - } |
| 410 | + "icon": "$(cmake-tools-build)" |
385 | 411 | }, |
386 | 412 | { |
387 | 413 | "command": "cmake.showBuildCommand", |
|
399 | 425 | "command": "cmake.outline.buildAll", |
400 | 426 | "title": "%cmake-tools.command.cmake.buildAll.title%", |
401 | 427 | "when": "cmake:enableFullFeatureSet", |
402 | | - "icon": { |
403 | | - "dark": "res/dark/build-icon.svg", |
404 | | - "light": "res/light/build-icon.svg" |
405 | | - } |
| 428 | + "icon": "$(cmake-tools-build)" |
406 | 429 | }, |
407 | 430 | { |
408 | 431 | "command": "cmake.compileFile", |
409 | 432 | "title": "%cmake-tools.command.cmake.compileFile.title%", |
410 | 433 | "category": "CMake", |
411 | 434 | "when": "cmake:enableFullFeatureSet", |
412 | | - "icon": { |
413 | | - "dark": "res/dark/build-icon.svg", |
414 | | - "light": "res/light/build-icon.svg" |
415 | | - } |
| 435 | + "icon": "$(cmake-tools-build)" |
416 | 436 | }, |
417 | 437 | { |
418 | 438 | "command": "cmake.outline.compileFile", |
419 | 439 | "title": "%cmake-tools.command.cmake.outline.compileFile.title%", |
420 | 440 | "when": "cmake:enableFullFeatureSet", |
421 | | - "icon": { |
422 | | - "dark": "res/dark/build-icon.svg", |
423 | | - "light": "res/light/build-icon.svg" |
424 | | - } |
| 441 | + "icon": "$(cmake-tools-build)" |
425 | 442 | }, |
426 | 443 | { |
427 | 444 | "command": "cmake.install", |
|
473 | 490 | "title": "%cmake-tools.command.cmake.projectStatus.cleanConfigure.title%", |
474 | 491 | "when": "cmake:enableFullFeatureSet", |
475 | 492 | "category": "CMake", |
476 | | - "icon": { |
477 | | - "dark": "res/dark/clean-configure-icon.svg", |
478 | | - "light": "res/light/clean-configure-icon.svg" |
479 | | - } |
| 493 | + "icon": "$(cmake-tools-clean-configure)" |
480 | 494 | }, |
481 | 495 | { |
482 | 496 | "command": "cmake.projectStatus.openSettings", |
483 | 497 | "title": "%cmake-tools.command.cmake.openSettings.title%", |
484 | 498 | "when": "cmake:enableFullFeatureSet", |
485 | 499 | "category": "CMake", |
486 | | - "icon": { |
487 | | - "dark": "res/dark/settings-icon.svg", |
488 | | - "light": "res/light/settings-icon.svg" |
489 | | - } |
| 500 | + "icon": "$(settings-gear)" |
490 | 501 | }, |
491 | 502 | { |
492 | 503 | "command": "cmake.projectStatus.openVisibilitySettings", |
493 | 504 | "title": "%cmake-tools.command.cmake.projectStatus.openVisibilitySettings.title%", |
494 | 505 | "when": "cmake:enabelFullFeatureSet", |
495 | 506 | "category": "CMake", |
496 | | - "icon": { |
497 | | - "dark": "res/dark/json-icon.svg", |
498 | | - "light": "res/light/json-icon.svg" |
499 | | - } |
| 507 | + "icon": "$(json)" |
500 | 508 | }, |
501 | 509 | { |
502 | 510 | "command": "cmake.cleanConfigureWithDebugger", |
|
539 | 547 | "command": "cmake.outline.clean", |
540 | 548 | "when": "cmake:enableFullFeatureSet", |
541 | 549 | "title": "%cmake-tools.command.cmake.clean.title%", |
542 | | - "icon": { |
543 | | - "dark": "res/dark/clean-icon.svg", |
544 | | - "light": "res/light/clean-icon.svg" |
545 | | - } |
| 550 | + "icon": "$(cmake-tools-clean)" |
546 | 551 | }, |
547 | 552 | { |
548 | 553 | "command": "cmake.cleanAll", |
|
3620 | 3625 | { |
3621 | 3626 | "id": "cmake-view", |
3622 | 3627 | "title": "CMake", |
3623 | | - "icon": "res/cmake-view-icon2.svg", |
| 3628 | + "icon": "$(cmake-tools-cmake-view-2)", |
3624 | 3629 | "when": "cmake:enableFullFeatureSet" |
3625 | 3630 | } |
3626 | 3631 | ] |
|
3699 | 3704 | "extensionTestsSuccessfulBuild": "yarn run pretest && node ./out/test/extension-tests/successful-build/runTest.js", |
3700 | 3705 | "extensionTestsSingleRoot": "yarn run pretest && node ./out/test/extension-tests/single-root-UI/runTest.js", |
3701 | 3706 | "extensionTestsMultiRoot": "yarn run pretest && node ./out/test/extension-tests/multi-root-UI/runTest.js", |
3702 | | - "backendTests": "node ./node_modules/mocha/bin/_mocha -u tdd --timeout 999999 --colors -r ts-node/register -r tsconfig-paths/register ./test/backend-unit-tests/**/*.test.ts" |
| 3707 | + "backendTests": "node ./node_modules/mocha/bin/_mocha -u tdd --timeout 999999 --colors -r ts-node/register -r tsconfig-paths/register ./test/backend-unit-tests/**/*.test.ts", |
| 3708 | + "build-product-icon-font": "yarn --cwd ./tools/product-icon-font-generator/ install && yarn --cwd ./tools/product-icon-font-generator/ build && node ./tools/product-icon-font-generator/dist/index.js --source-directory ./res/product-icons/ --output-directory ./res/ --woff2" |
3703 | 3709 | }, |
3704 | 3710 | "devDependencies": { |
3705 | 3711 | "@octokit/rest": "^18.1.1", |
|
0 commit comments