Skip to content

Commit 33412b3

Browse files
committed
Stops blame file annotations from moving on editing blank lines
1 parent 599b80c commit 33412b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/annotations/fileAnnotationController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export type AnnotationClearReason =
5454

5555
export const Decorations = {
5656
gutterBlameAnnotation: window.createTextEditorDecorationType({
57-
rangeBehavior: DecorationRangeBehavior.ClosedOpen,
57+
rangeBehavior: DecorationRangeBehavior.OpenOpen,
5858
textDecoration: 'none',
5959
}),
6060
gutterBlameHighlight: undefined as TextEditorDecorationType | undefined,

src/annotations/lineAnnotationController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const annotationDecoration: TextEditorDecorationType = window.createTextEditorDe
2424
margin: '0 0 0 3em',
2525
textDecoration: 'none',
2626
},
27-
rangeBehavior: DecorationRangeBehavior.ClosedOpen,
27+
rangeBehavior: DecorationRangeBehavior.OpenOpen,
2828
});
2929
const maxSmallIntegerV8 = 2 ** 30; // Max number that can be stored in V8's smis (small integers)
3030

0 commit comments

Comments
 (0)