|
290 | 290 | "title": "Comments Overview", |
291 | 291 | "icon": "$(comment-discussion)" |
292 | 292 | }, |
| 293 | + { |
| 294 | + "command": "gerrit.acceptSuggestion", |
| 295 | + "title": "Accept Suggestion", |
| 296 | + "icon": "$(lightbulb)" |
| 297 | + }, |
293 | 298 | { |
294 | 299 | "command": "cmd.gerrit.changeGitRepo", |
295 | 300 | "title": "Gerrit: Change git repo" |
|
384 | 389 | "command": "cmd.gerrit.openLineOnGitilesPermalink", |
385 | 390 | "title": "Gerrit: Open line on Gitiles (permalink)" |
386 | 391 | }, |
387 | | - { |
388 | | - "command": "cmd.gerrit.aiReview", |
389 | | - "title": "Gerrit: AI Review Change", |
390 | | - "icon": "$(lightbulb)" |
391 | | - }, |
392 | 392 | { |
393 | 393 | "command": "cmd.gerrit.enableAiReview", |
394 | 394 | "title": "Gerrit: Enable AI Review" |
395 | 395 | }, |
396 | 396 | { |
397 | 397 | "command": "cmd.gerrit.selectAiModel", |
398 | 398 | "title": "Gerrit: Select AI Review Model" |
| 399 | + }, |
| 400 | + { |
| 401 | + "command": "cmd.gerrit.commentsOverview", |
| 402 | + "title": "Gerrit: Comments Overview", |
| 403 | + "icon": "$(comment-discussion)" |
399 | 404 | } |
400 | 405 | ], |
401 | 406 | "keybindings": [ |
|
638 | 643 | "command": "gerrit.commentsOverview", |
639 | 644 | "when": "false" |
640 | 645 | }, |
| 646 | + { |
| 647 | + "command": "gerrit.acceptSuggestion", |
| 648 | + "when": "false" |
| 649 | + }, |
641 | 650 | { |
642 | 651 | "command": "cmd.gerrit.changeGitRepo", |
643 | 652 | "when": "true" |
|
719 | 728 | "when": "true" |
720 | 729 | }, |
721 | 730 | { |
722 | | - "command": "cmd.gerrit.aiReview", |
| 731 | + "command": "cmd.gerrit.enableAiReview", |
723 | 732 | "when": "true" |
724 | 733 | }, |
725 | 734 | { |
726 | | - "command": "cmd.gerrit.enableAiReview", |
| 735 | + "command": "cmd.gerrit.selectAiModel", |
727 | 736 | "when": "true" |
728 | 737 | }, |
729 | 738 | { |
730 | | - "command": "cmd.gerrit.selectAiModel", |
| 739 | + "command": "cmd.gerrit.commentsOverview", |
731 | 740 | "when": "true" |
732 | 741 | } |
733 | 742 | ], |
|
817 | 826 | "command": "gerrit.deleteComment", |
818 | 827 | "when": "commentController == gerrit && comment =~ /deletable/", |
819 | 828 | "group": "inline@4" |
| 829 | + }, |
| 830 | + { |
| 831 | + "command": "gerrit.acceptSuggestion", |
| 832 | + "when": "commentController == gerrit && comment =~ /quickActionable/", |
| 833 | + "group": "inline@5" |
820 | 834 | } |
821 | 835 | ], |
822 | 836 | "view/item/context": [ |
|
831 | 845 | "group": "inline@2" |
832 | 846 | }, |
833 | 847 | { |
834 | | - "command": "gerrit.checkoutBranch", |
| 848 | + "command": "gerrit.aiReview", |
835 | 849 | "when": "view == gerrit:changeExplorer && viewItem =~ /gerritchange/", |
836 | 850 | "group": "inline@3" |
837 | 851 | }, |
838 | 852 | { |
839 | | - "command": "gerrit.aiReview", |
| 853 | + "command": "gerrit.checkoutBranch", |
840 | 854 | "when": "view == gerrit:changeExplorer && viewItem =~ /gerritchange/", |
841 | 855 | "group": "inline@4" |
842 | 856 | }, |
|
1491 | 1505 | }, |
1492 | 1506 | "gerrit.aiReview.enabled": { |
1493 | 1507 | "type": "boolean", |
1494 | | - "title": "Enable AI Review feature", |
1495 | | - "description": "Enable AI-powered code review using Cursor CLI", |
| 1508 | + "title": "Enable AI Review", |
| 1509 | + "description": "Enable AI-powered code reviews using Cursor agent", |
1496 | 1510 | "default": false |
1497 | 1511 | }, |
1498 | 1512 | "gerrit.aiReview.checkoutBehavior": { |
|
1502 | 1516 | "always", |
1503 | 1517 | "never" |
1504 | 1518 | ], |
1505 | | - "title": "Checkout behavior for AI Review", |
1506 | | - "description": "Whether to checkout the change locally before running AI review. \"ask\" prompts each time, \"always\" checks out automatically, \"never\" uses Gerrit context only.", |
| 1519 | + "title": "AI Review Checkout Behavior", |
| 1520 | + "description": "Whether to checkout changes before AI review for better context", |
1507 | 1521 | "default": "ask" |
1508 | 1522 | }, |
1509 | 1523 | "gerrit.aiReview.defaultModel": { |
1510 | 1524 | "type": "string", |
1511 | | - "title": "Default AI model for reviews", |
1512 | | - "description": "Default Cursor model to use for AI reviews (e.g. claude-4.6-sonnet). Leave empty for auto.", |
| 1525 | + "title": "Default AI Review Model", |
| 1526 | + "description": "Default AI model to use for reviews (e.g., claude-4.6-opus, gpt-4o). Leave empty for auto-selection.", |
1513 | 1527 | "default": "" |
1514 | 1528 | }, |
1515 | 1529 | "gerrit.aiReview.customPromptFile": { |
1516 | 1530 | "type": "string", |
1517 | | - "title": "Custom review prompt file", |
1518 | | - "description": "Path to a Markdown file with additional review instructions. Relative to workspace root.", |
1519 | | - "default": ".gerrit-review-prompt.md" |
| 1531 | + "title": "Custom AI Review Prompt File", |
| 1532 | + "description": "Path to a custom Markdown file with additional review guidelines (relative to workspace root)", |
| 1533 | + "default": ".gerrit-ai-prompt.md" |
1520 | 1534 | } |
1521 | 1535 | } |
1522 | 1536 | } |
|
1544 | 1558 | "build:review:css": "npm run copy -- src/views/activityBar/review/css/index.css out/review/index.css", |
1545 | 1559 | "build:main": "esbuild --minify --bundle --outfile=out/extension.js src/extension.ts --platform=node --external:vscode", |
1546 | 1560 | "build:debug:main": "esbuild --bundle --outfile=out/extension.js src/extension.ts --platform=node --external:vscode --define:process.env.DEV_OVERRIDE=true", |
1547 | | - "build": "rimraf ./out && npm run build:main && npm run build:review:js && npm run build:review:css && npm run build:review:codicons:css && npm run build:review:codicons:ttf", |
1548 | | - "build:debug": "rimraf ./out && npm run build:debug:main && npm run build:debug:review:js && npm run build:review:css && npm run build:review:codicons:css && npm run build:review:codicons:ttf", |
| 1561 | + "build:mcp": "esbuild --bundle --outfile=out/lib/mcp/gerritMcpServer.js src/lib/mcp/gerritMcpServer.ts --platform=node --external:vscode", |
| 1562 | + "build:debug:mcp": "esbuild --bundle --outfile=out/lib/mcp/gerritMcpServer.js src/lib/mcp/gerritMcpServer.ts --platform=node --external:vscode", |
| 1563 | + "build": "rimraf ./out && npm run build:main && npm run build:mcp && npm run build:review:js && npm run build:review:css && npm run build:review:codicons:css && npm run build:review:codicons:ttf", |
| 1564 | + "build:debug": "rimraf ./out && npm run build:debug:main && npm run build:debug:mcp && npm run build:debug:review:js && npm run build:review:css && npm run build:review:codicons:css && npm run build:review:codicons:ttf", |
1549 | 1565 | "pretest": "npm run compile && npm run lint", |
1550 | 1566 | "lint": "eslint src --ext ts", |
1551 | 1567 | "format-staged": "(git diff --ignore-submodules --quiet && npm run format) || pretty-quick src/", |
|
0 commit comments