Summary
Add support for suggesting specific code changes directly in review comments, similar to Bitbucket's suggestion feature that allows reviewers to propose changes that can be applied with one click.
User Story
As a code reviewer, I want to suggest specific code changes inline, so that the author can apply my suggestions directly without manually copying and editing code.
Proposed Solution
- Add UI action to "Suggest change" when creating inline comments
- Render suggested code blocks with syntax highlighting
- Display diff preview showing current vs. suggested code
- Provide "Apply suggestion" button for PR authors
- Generate commit or local change when suggestion is applied
- Support both GitHub and Bitbucket suggestion formats
Acceptance Criteria
Technical Considerations
- GitHub: Uses markdown code blocks with
suggestion language tag
- Bitbucket: Uses specific suggestion API format
- Need to parse suggestion syntax from comment markdown
- Apply suggestions via JGit working tree modifications or provider API
- Handle conflicts when suggested code no longer matches current state
- Consider integration with Eclipse's quick fix/refactoring UI patterns
References
Summary
Add support for suggesting specific code changes directly in review comments, similar to Bitbucket's suggestion feature that allows reviewers to propose changes that can be applied with one click.
User Story
As a code reviewer, I want to suggest specific code changes inline, so that the author can apply my suggestions directly without manually copying and editing code.
Proposed Solution
Acceptance Criteria
Technical Considerations
suggestionlanguage tagReferences