@@ -22,7 +22,7 @@ import { trackableSchemes } from '../constants';
2222import { Commands } from '../constants.commands' ;
2323import type { Container } from '../container' ;
2424import type { GitUri } from '../git/gitUri' ;
25- import type { GitBlame , GitBlameLines } from '../git/models/blame' ;
25+ import type { GitBlame } from '../git/models/blame' ;
2626import type { GitCommit } from '../git/models/commit' ;
2727import { RemoteResourceType } from '../git/models/remoteResource' ;
2828import { is , once } from '../system/function' ;
@@ -40,7 +40,7 @@ class GitRecentChangeCodeLens extends CodeLens {
4040 public readonly symbol : DocumentSymbol | SymbolInformation ,
4141 public readonly uri : GitUri | undefined ,
4242 public readonly dateFormat : string | null ,
43- private readonly blame : ( ( ) => GitBlameLines | undefined ) | undefined ,
43+ private readonly blame : ( ( ) => GitBlame | undefined ) | undefined ,
4444 public readonly blameRange : Range ,
4545 public readonly isFullRange : boolean ,
4646 range : Range ,
@@ -50,7 +50,7 @@ class GitRecentChangeCodeLens extends CodeLens {
5050 super ( range , command ) ;
5151 }
5252
53- getBlame ( ) : GitBlameLines | undefined {
53+ getBlame ( ) : GitBlame | undefined {
5454 return this . blame ?.( ) ;
5555 }
5656}
@@ -60,7 +60,7 @@ class GitAuthorsCodeLens extends CodeLens {
6060 public readonly languageId : string ,
6161 public readonly symbol : DocumentSymbol | SymbolInformation ,
6262 public readonly uri : GitUri | undefined ,
63- private readonly blame : ( ) => GitBlameLines | undefined ,
63+ private readonly blame : ( ) => GitBlame | undefined ,
6464 public readonly blameRange : Range ,
6565 public readonly isFullRange : boolean ,
6666 range : Range ,
@@ -69,7 +69,7 @@ class GitAuthorsCodeLens extends CodeLens {
6969 super ( range ) ;
7070 }
7171
72- getBlame ( ) : GitBlameLines | undefined {
72+ getBlame ( ) : GitBlame | undefined {
7373 return this . blame ( ) ;
7474 }
7575}
@@ -193,7 +193,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
193193 if ( lenses . find ( l => l . range . start . line === 0 && l . range . end . line === 0 ) == null ) {
194194 const blameRange = documentRangeFn ( ) ;
195195
196- let blameForRangeFn : ( ( ) => GitBlameLines | undefined ) | undefined = undefined ;
196+ let blameForRangeFn : ( ( ) => GitBlame | undefined ) | undefined = undefined ;
197197 if ( dirty || cfg . recentChange . enabled ) {
198198 if ( ! dirty ) {
199199 blameForRangeFn = once ( ( ) => this . container . git . getBlameRange ( blame ! , gitUri , blameRange ) ) ;
@@ -366,7 +366,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
366366 // Anchor the CodeLens to the start of the line -- so that the range won't change with edits (otherwise the CodeLens will be removed and re-added)
367367 let startChar = 0 ;
368368
369- let blameForRangeFn : ( ( ) => GitBlameLines | undefined ) | undefined ;
369+ let blameForRangeFn : ( ( ) => GitBlame | undefined ) | undefined ;
370370 if ( dirty || cfg . recentChange . enabled ) {
371371 if ( ! dirty ) {
372372 blameForRangeFn = once ( ( ) => this . container . git . getBlameRange ( blame ! , gitUri ! , blameRange ) ) ;
@@ -677,7 +677,7 @@ function applyRevealCommitInViewCommand<T extends GitRecentChangeCodeLens | GitA
677677function applyShowCommitsInViewCommand < T extends GitRecentChangeCodeLens | GitAuthorsCodeLens > (
678678 title : string ,
679679 lens : T ,
680- blame : GitBlameLines ,
680+ blame : GitBlame ,
681681 commit ?: GitCommit ,
682682) : T {
683683 let refs ;
0 commit comments