@@ -237,13 +237,13 @@ export class GitCodeLensProvider implements CodeLensProvider {
237
237
let title : string ;
238
238
if ( this . _documentIsDirty ) {
239
239
if ( this . _config . codeLens . recentChange . enabled && this . _config . codeLens . authors . enabled ) {
240
- title = this . _config . strings . codeLens . unsavedChanges . recentChangeAndAuthors ;
240
+ title = this . _config . strings . codeLens . unsavedChanges . recentChangeAndAuthors ;
241
241
}
242
242
else if ( this . _config . codeLens . recentChange . enabled ) {
243
- title = this . _config . strings . codeLens . unsavedChanges . recentChangeOnly ;
243
+ title = this . _config . strings . codeLens . unsavedChanges . recentChangeOnly ;
244
244
}
245
245
else {
246
- title = this . _config . strings . codeLens . unsavedChanges . authorsOnly ;
246
+ title = this . _config . strings . codeLens . unsavedChanges . authorsOnly ;
247
247
}
248
248
249
249
lens . command = { title : title } as Command ;
@@ -256,7 +256,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
256
256
const recentCommit = Iterables . first ( blame . commits . values ( ) ) ;
257
257
title = `${ recentCommit . author } , ${ moment ( recentCommit . date ) . fromNow ( ) } ` ;
258
258
if ( this . _config . codeLens . debug ) {
259
- title += ` [${ SymbolKind [ lens . symbolKind ] } (${ lens . blameRange . start . line + 1 } -${ lens . blameRange . end . line + 1 } ), Commit (${ recentCommit . shortSha } )]` ;
259
+ title += ` [${ SymbolKind [ lens . symbolKind ] } (${ lens . range . start . character } - ${ lens . range . end . character } ), Lines ( ${ lens . blameRange . start . line + 1 } -${ lens . blameRange . end . line + 1 } ), Commit (${ recentCommit . shortSha } )]` ;
260
260
}
261
261
262
262
switch ( this . _config . codeLens . recentChange . command ) {
@@ -279,7 +279,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
279
279
const count = blame . authors . size ;
280
280
let title = `${ count } ${ count > 1 ? 'authors' : 'author' } (${ Iterables . first ( blame . authors . values ( ) ) . name } ${ count > 1 ? ' and others' : '' } )` ;
281
281
if ( this . _config . codeLens . debug ) {
282
- title += ` [${ SymbolKind [ lens . symbolKind ] } (${ lens . blameRange . start . line + 1 } -${ lens . blameRange . end . line + 1 } ), Authors (${ Iterables . join ( Iterables . map ( blame . authors . values ( ) , _ => _ . name ) , ', ' ) } )]` ;
282
+ title += ` [${ SymbolKind [ lens . symbolKind ] } (${ lens . range . start . character } - ${ lens . range . end . character } ), Lines ( ${ lens . blameRange . start . line + 1 } -${ lens . blameRange . end . line + 1 } ), Authors (${ Iterables . join ( Iterables . map ( blame . authors . values ( ) , _ => _ . name ) , ', ' ) } )]` ;
283
283
}
284
284
285
285
switch ( this . _config . codeLens . authors . command ) {
0 commit comments