Add marker for expansion hunks

This commit is contained in:
René Pfeuffer
2020-06-09 13:57:44 +02:00
parent 5d7641f129
commit d909ff4ae4
3 changed files with 22 additions and 14 deletions

View File

@@ -133,7 +133,8 @@ class DiffExpander {
newStart: minNewLineNumberOfNewHunk,
oldLines: lines.length,
newLines: lines.length,
changes: newChanges
changes: newChanges,
expansion: true
};
const newHunks: Hunk[] = [];
this.file.hunks!.forEach((oldHunk: Hunk, i: number) => {
@@ -178,6 +179,7 @@ class DiffExpander {
newStart: maxNewLineNumberFromPrecedingHunk + 1,
oldLines: lines.length,
newLines: lines.length,
expansion: true,
fullyExpanded: requestedLines < 0 || lines.length < requestedLines
};