Collapse unchanged lines in suggestions
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=537614) </details> <!--IssueSummary end--> # Situation Sometimes, you want to make a suggestion where you change two lines at opposite ends of a files within the same suggestion. Currently, this results in a very large diff, the assignee has to wrap their head around. This leads to solutions like * Creating multiple suggestions in different comments * Add textual instructions with additional chores to the suggestion This is all not very ideal as it can lead to partially applied changes that will result in the pipeline failing, which may not be obvious to the assignee # Solutions * Automatically collapse unchanged lines ```diff 1 import A from 'a' + import B from 'b' … 25 a = new A(); + b = new B(); ``` * Denote relevant lines ````markdown ```suggestion lines="1" import A from 'a' import B from 'b' ``` ```suggestion lines="2" a = new A(); b = new B(); ``` ```` Part of &832
issue