@@ -3,7 +3,6 @@ import { Arrays, Iterables } from '../system';
33import { CancellationToken , Disposable , Hover , HoverProvider , languages , Position , Range , TextDocument , TextEditor , TextEditorDecorationType } from 'vscode' ;
44import { AnnotationProviderBase } from './annotationProvider' ;
55import { Annotations } from './annotations' ;
6- import { RangeEndOfLineIndex } from '../constants' ;
76import { Container } from '../container' ;
87import { GitDocumentState , TrackedDocument } from '../trackers/gitDocumentTracker' ;
98import { GitBlame , GitCommit , GitUri } from '../gitService' ;
@@ -75,7 +74,7 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
7574 }
7675
7776 const highlightDecorationRanges = Arrays . filterMap ( blame . lines ,
78- l => l . sha === sha ? this . editor . document . validateRange ( new Range ( l . line , 0 , l . line , RangeEndOfLineIndex ) ) : undefined ) ;
77+ l => l . sha === sha ? this . editor . document . validateRange ( new Range ( l . line , 0 , l . line , Number . MAX_SAFE_INTEGER ) ) : undefined ) ;
7978
8079 this . editor . setDecorations ( this . highlightDecoration , highlightDecorationRanges ) ;
8180 }
@@ -122,7 +121,7 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
122121 }
123122
124123 const message = Annotations . getHoverMessage ( logCommit || commit , Container . config . defaultDateFormat , await Container . git . getRemotes ( commit . repoPath ) , this . annotationType , this . editor . selection . active . line ) ;
125- return new Hover ( message , document . validateRange ( new Range ( position . line , 0 , position . line , RangeEndOfLineIndex ) ) ) ;
124+ return new Hover ( message , document . validateRange ( new Range ( position . line , 0 , position . line , Number . MAX_SAFE_INTEGER ) ) ) ;
126125 }
127126
128127 async provideChangesHover ( document : TextDocument , position : Position , token : CancellationToken ) : Promise < Hover | undefined > {
@@ -132,7 +131,7 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
132131 const hover = await Annotations . changesHover ( commit , position . line , await GitUri . fromUri ( document . uri ) ) ;
133132 if ( hover . hoverMessage === undefined ) return undefined ;
134133
135- return new Hover ( hover . hoverMessage , document . validateRange ( new Range ( position . line , 0 , position . line , RangeEndOfLineIndex ) ) ) ;
134+ return new Hover ( hover . hoverMessage , document . validateRange ( new Range ( position . line , 0 , position . line , Number . MAX_SAFE_INTEGER ) ) ) ;
136135 }
137136
138137 private async getCommitForHover ( position : Position ) : Promise < GitCommit | undefined > {
@@ -145,4 +144,4 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
145144
146145 return blame . commits . get ( line . sha ) ;
147146 }
148- }
147+ }
0 commit comments