Skip to content

Commit 8623e66

Browse files
committed
Changes the start of line decoration to be both only
1 parent c3bd17e commit 8623e66

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/blameActiveLineController.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)