@@ -391,7 +391,8 @@ export class CurrentLineController extends Disposable {
391391 } ;
392392 }
393393
394- private _updateBlameDebounced : ( ( line : number , editor : TextEditor , trackedDocument : TrackedDocument < GitDocumentState > ) => void ) & IDeferrable ;
394+ private _updateBlameDebounced : ( ( ( line : number , editor : TextEditor , trackedDocument : TrackedDocument < GitDocumentState > ) => void ) & IDeferrable ) | undefined ;
395+
395396 private async refresh ( editor : TextEditor | undefined , options : { full ?: boolean , trackedDocument ?: TrackedDocument < GitDocumentState > } = { } ) {
396397 if ( editor === undefined && this . _editor === undefined ) return ;
397398
@@ -462,7 +463,7 @@ export class CurrentLineController extends Disposable {
462463 this . _lineTracker . reset ( ) ;
463464
464465 // Make sure we are still on the same line and not pending
465- if ( this . _lineTracker . line !== line || this . _updateBlameDebounced . pending ! ( ) ) return ;
466+ if ( this . _lineTracker . line !== line || ( this . _updateBlameDebounced && this . _updateBlameDebounced . pending ! ( ) ) ) return ;
466467
467468 const blameLine = editor . document . isDirty
468469 ? await Container . git . getBlameForLineContents ( trackedDocument . uri , line , editor . document . getText ( ) )
@@ -472,7 +473,7 @@ export class CurrentLineController extends Disposable {
472473 let commitLine ;
473474
474475 // Make sure we are still on the same line, blameable, and not pending, after the await
475- if ( this . _lineTracker . line === line && trackedDocument . isBlameable && ! this . _updateBlameDebounced . pending ! ( ) ) {
476+ if ( this . _lineTracker . line === line && trackedDocument . isBlameable && ! ( this . _updateBlameDebounced && this . _updateBlameDebounced . pending ! ( ) ) ) {
476477 const state = this . getBlameAnnotationState ( ) ;
477478 if ( state . enabled ) {
478479 commitLine = blameLine === undefined ? undefined : blameLine . line ;
0 commit comments