File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/editor/browser/widget/diffEditorWidget2 Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ export class DiffEditorDecorations extends Disposable {
61
61
continue ;
62
62
}
63
63
64
- originalDecorations . push ( { range : i . originalRange , options : ( i . originalRange . isEmpty ( ) && showEmptyDecorations ) ? diffDeleteDecorationEmpty : diffDeleteDecoration } ) ;
65
- modifiedDecorations . push ( { range : i . modifiedRange , options : ( i . modifiedRange . isEmpty ( ) && showEmptyDecorations ) ? diffAddDecorationEmpty : diffAddDecoration } ) ;
64
+ if ( i . originalRange . startLineNumber < m . lineRangeMapping . originalRange . endLineNumberExclusive ) {
65
+ originalDecorations . push ( { range : i . originalRange , options : ( i . originalRange . isEmpty ( ) && showEmptyDecorations ) ? diffDeleteDecorationEmpty : diffDeleteDecoration } ) ;
66
+ }
67
+ if ( i . modifiedRange . startLineNumber < m . lineRangeMapping . modifiedRange . endLineNumberExclusive ) {
68
+ modifiedDecorations . push ( { range : i . modifiedRange , options : ( i . modifiedRange . isEmpty ( ) && showEmptyDecorations ) ? diffAddDecorationEmpty : diffAddDecoration } ) ;
69
+ }
66
70
}
67
71
68
72
if ( ! m . lineRangeMapping . modifiedRange . isEmpty && this . _options . shouldRenderRevertArrows . read ( reader ) && ! currentMove ) {
You can’t perform that action at this time.
0 commit comments