|
12 | 12 | "version": "0.0.0", |
13 | 13 | "engines": { |
14 | 14 | "node": ">=18", |
15 | | - "vscode": "^1.91.0" |
| 15 | + "vscode": "^1.97.0" |
16 | 16 | }, |
17 | 17 | "activationEvents": [ |
18 | 18 | "workspaceContains:electron_resources.grd", |
|
38 | 38 | } |
39 | 39 | }, |
40 | 40 | "contributes": { |
| 41 | + "chatParticipants": [ |
| 42 | + { |
| 43 | + "id": "electron-build-tools", |
| 44 | + "name": "electron", |
| 45 | + "fullName": "Electron Build Tools", |
| 46 | + "description": "Ask about Electron", |
| 47 | + "when": "electron-build-tools:active", |
| 48 | + "commands": [ |
| 49 | + { |
| 50 | + "name": "findUpstreamFiles", |
| 51 | + "description": "Attempt to find upstream Chromium files that Electron files are derived from." |
| 52 | + }, |
| 53 | + { |
| 54 | + "name": "upgradesFindCL", |
| 55 | + "description": "Attempt to find the Chromium CL related to the current sync/build failure." |
| 56 | + } |
| 57 | + ] |
| 58 | + } |
| 59 | + ], |
41 | 60 | "colors": [ |
42 | 61 | { |
43 | 62 | "id": "electronBuildTools.gettingStartedIcon", |
|
494 | 513 | ] |
495 | 514 | } |
496 | 515 | ], |
| 516 | + "languageModelTools": [ |
| 517 | + { |
| 518 | + "name": "electron-build-tools_chromiumGitLog", |
| 519 | + "tags": ["chromium", "git", "log", "commits"], |
| 520 | + "displayName": "Chromium Git Log", |
| 521 | + "modelDescription": "Retrieves the git log for Chromium between two versions", |
| 522 | + "inputSchema": { |
| 523 | + "type": "object", |
| 524 | + "properties": { |
| 525 | + "startVersion": { |
| 526 | + "type": "string", |
| 527 | + "description": "The starting version to retrieve the log for.", |
| 528 | + "examples": [ |
| 529 | + "135.0.7016.3", |
| 530 | + "135.0.7049.1" |
| 531 | + ] |
| 532 | + }, |
| 533 | + "endVersion": { |
| 534 | + "type": "string", |
| 535 | + "description": "The ending version to retrieve the log for.", |
| 536 | + "examples": [ |
| 537 | + "135.0.7016.3", |
| 538 | + "135.0.7049.1" |
| 539 | + ] |
| 540 | + }, |
| 541 | + "page": { |
| 542 | + "type": "integer", |
| 543 | + "description": "The page number of the log to retrieve.", |
| 544 | + "minimum": 1 |
| 545 | + } |
| 546 | + } |
| 547 | + } |
| 548 | + }, |
| 549 | + { |
| 550 | + "name": "electron-build-tools_chromiumGitShow", |
| 551 | + "tags": ["chromium", "git", "show", "commits"], |
| 552 | + "displayName": "Chromium Git Show", |
| 553 | + "modelDescription": "Shows the log message and textual diff for a commit", |
| 554 | + "inputSchema": { |
| 555 | + "type": "object", |
| 556 | + "properties": { |
| 557 | + "commit": { |
| 558 | + "type": "string", |
| 559 | + "description": "The SHA for the commit to show.", |
| 560 | + "examples": [ |
| 561 | + "26b69cddcef09655077629eeda8000f4ba621f5f" |
| 562 | + ] |
| 563 | + } |
| 564 | + }, |
| 565 | + "required": [ |
| 566 | + "commit" |
| 567 | + ] |
| 568 | + } |
| 569 | + }, |
| 570 | + { |
| 571 | + "name": "electron-build-tools_gitLog", |
| 572 | + "tags": ["git", "log", "commits"], |
| 573 | + "displayName": "Git Log", |
| 574 | + "modelDescription": "Retrieves the git log for a given filename", |
| 575 | + "inputSchema": { |
| 576 | + "type": "object", |
| 577 | + "properties": { |
| 578 | + "filename": { |
| 579 | + "type": "string", |
| 580 | + "description": "The filename to retrieve the git log for.", |
| 581 | + "examples": [ |
| 582 | + "chrome/browser/icon_loader.cc", |
| 583 | + "components/autofill/core/browser/geo/autofill_country.h" |
| 584 | + ] |
| 585 | + }, |
| 586 | + "since": { |
| 587 | + "type": "string", |
| 588 | + "description": "Show commits more recent than a specific date.", |
| 589 | + "examples": [ |
| 590 | + "Mon Jan 10 18:11:51 2022 -0700" |
| 591 | + ] |
| 592 | + } |
| 593 | + }, |
| 594 | + "required": [ |
| 595 | + "filename" |
| 596 | + ] |
| 597 | + } |
| 598 | + }, |
| 599 | + { |
| 600 | + "name": "electron-build-tools_gitShow", |
| 601 | + "tags": ["git", "show", "commits"], |
| 602 | + "displayName": "Git Show", |
| 603 | + "modelDescription": "Shows the log message and textual diff for a commit", |
| 604 | + "inputSchema": { |
| 605 | + "type": "object", |
| 606 | + "properties": { |
| 607 | + "commit": { |
| 608 | + "type": "string", |
| 609 | + "description": "The SHA for the commit to show.", |
| 610 | + "examples": [ |
| 611 | + "26b69cddcef09655077629eeda8000f4ba621f5f" |
| 612 | + ] |
| 613 | + }, |
| 614 | + "filename": { |
| 615 | + "type": "string", |
| 616 | + "description": "The filename to limit the textual diff to.", |
| 617 | + "examples": [ |
| 618 | + "chrome/browser/icon_loader.cc", |
| 619 | + "electron/shell/utility/electron_content_utility_client.h" |
| 620 | + ] |
| 621 | + } |
| 622 | + }, |
| 623 | + "required": [ |
| 624 | + "commit", |
| 625 | + "filename" |
| 626 | + ] |
| 627 | + } |
| 628 | + } |
| 629 | + ], |
497 | 630 | "markdown.markdownItPlugins": true, |
498 | 631 | "menus": { |
499 | 632 | "commandPalette": [ |
|
786 | 919 | "lint": "eslint electron src && yarn prettier:check", |
787 | 920 | "prepare": "husky", |
788 | 921 | "pretest": "yarn run esbuild && yarn run lint", |
789 | | - "prettier:check": "prettier --check \"src/**/*.ts\" \"scripts/**/*.ts\" \"electron/**/*.ts\"", |
790 | | - "prettier:write": "prettier --write \"src/**/*.ts\" \"scripts/**/*.ts\" \"electron/**/*.ts\"" |
| 922 | + "prettier:check": "prettier --check \"src/**/*.{ts,tsx}\" \"scripts/**/*.ts\" \"electron/**/*.ts\"", |
| 923 | + "prettier:write": "prettier --write \"src/**/*.{ts,tsx}\" \"scripts/**/*.ts\" \"electron/**/*.ts\"" |
791 | 924 | }, |
792 | 925 | "devDependencies": { |
793 | 926 | "@commitlint/cli": "^19.5.0", |
|
800 | 933 | "@types/mocha": "^10.0.9", |
801 | 934 | "@types/node": "^22.8.6", |
802 | 935 | "@types/uuid": "^10.0.0", |
803 | | - "@types/vscode": "1.91.0", |
| 936 | + "@types/vscode": "1.97.0", |
804 | 937 | "esbuild": "^0.24.2", |
805 | 938 | "eslint": "^9.13.0", |
806 | 939 | "husky": "^9.1.6", |
|
816 | 949 | "dependencies": { |
817 | 950 | "@electron/docs-parser": "^2.0.0", |
818 | 951 | "@octokit/rest": "^19.0.4", |
| 952 | + "@vscode/prompt-tsx": "^0.3.0-alpha.20", |
819 | 953 | "diff": "^5.0.0", |
820 | 954 | "lru-cache": "^7.14.0", |
821 | 955 | "markdown-it": "^14.1.0", |
|
0 commit comments