Loading
Offer code suggestions in Rapid Diffs thread replies
What
On legacy diffs, replying to an existing comment thread on a diff line offers code suggestions through an "Insert suggestion" button in the reply toolbar, the same as the first comment on that line. In Rapid Diffs, only the first comment on a line offered suggestions; the reply form did not. This restores suggestions in replies and re-enables spec/features/merge_request/user_suggests_changes_on_diff_spec.rb's "allows suggestions in replies" example.
Reproduction
- Enable the
rapid_diffs_default_on_mr_showfeature flag. - Open a merge request's Changes tab and comment on a diff line to start a thread.
- Click Reply on that thread.
- Use "Insert suggestion" in the reply toolbar. The reply is prefilled with a suggestion block containing that diff line.