I usually work with collapsed code blocks except for where I currently work. Thus
Add a general diff marker when a block of code is collapsed. For example, a line was deleted, when the code block collapses, a general diff marker is displayed in order to indicate to the user that there are modifications in this section.