File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -354,17 +354,21 @@ export class BlameActiveLineController extends Disposable {
354
354
}
355
355
}
356
356
} as DecorationInstanceRenderOptions
357
- } as DecorationOptions ,
357
+ } as DecorationOptions
358
+ ] ;
359
+
360
+ if ( activeLine === 'both' ) {
358
361
// Add a hover decoration to the area between the start of the line and the first non-whitespace character
359
- {
362
+ decorationOptions . push ( {
360
363
range : range . with ( {
361
364
end : range . end . with ( {
362
365
character : editor . document . lineAt ( range . end . line ) . firstNonWhitespaceCharacterIndex
363
366
} )
364
367
} ) ,
365
368
hoverMessage : hoverMessage
366
- } as DecorationOptions
367
- ] ;
369
+ } as DecorationOptions ) ;
370
+ }
371
+
368
372
break ;
369
373
370
374
case 'hover' :
@@ -374,6 +378,7 @@ export class BlameActiveLineController extends Disposable {
374
378
hoverMessage : hoverMessage
375
379
} as DecorationOptions
376
380
] ;
381
+
377
382
break ;
378
383
}
379
384
You can’t perform that action at this time.
0 commit comments