Code block surrounding code

Proposal

If we make a comment on a code diff in a merge request, we see a bit of code (15 lines) before the line(s) the comment is attached too. Nice! But we can't see what is below the line we commented on.

Would it be possible to show, for example, seven lines before and seven lines after the line(s) we commented on? With a different highlight color (bit of yellow maybe) over the connected line(s).

Current behavior; I commented on the whole array below the linked line (yes, forgot to drag it down over multiple lines), but first look for the developer is a bit confusing.

image

Possible linked with #23724

Edited by 🤖 GitLab Bot 🤖