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 {
354354 }
355355 }
356356 } as DecorationInstanceRenderOptions
357- } as DecorationOptions ,
357+ } as DecorationOptions
358+ ] ;
359+
360+ if ( activeLine === 'both' ) {
358361 // Add a hover decoration to the area between the start of the line and the first non-whitespace character
359- {
362+ decorationOptions . push ( {
360363 range : range . with ( {
361364 end : range . end . with ( {
362365 character : editor . document . lineAt ( range . end . line ) . firstNonWhitespaceCharacterIndex
363366 } )
364367 } ) ,
365368 hoverMessage : hoverMessage
366- } as DecorationOptions
367- ] ;
369+ } as DecorationOptions ) ;
370+ }
371+
368372 break ;
369373
370374 case 'hover' :
@@ -374,6 +378,7 @@ export class BlameActiveLineController extends Disposable {
374378 hoverMessage : hoverMessage
375379 } as DecorationOptions
376380 ] ;
381+
377382 break ;
378383 }
379384
You can’t perform that action at this time.
0 commit comments