From 7988cfdceadc6b718752c2d9b0f61eb028f1989a Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 16 Dec 2017 02:14:56 -0500 Subject: [PATCH] Adds font-[style|weight] control to annotations --- src/annotations/annotations.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/annotations/annotations.ts b/src/annotations/annotations.ts index 684da50..6a26407 100644 --- a/src/annotations/annotations.ts +++ b/src/annotations/annotations.ts @@ -197,6 +197,8 @@ export class Annotations { borderStyle: borderStyle, borderWidth: borderWidth, color: new ThemeColor('gitlens.gutterForegroundColor'), + fontWeight: 'normal', + fontStyle: 'normal', height: '100%', margin: '0 26px -1px 0', textDecoration: separateLines ? 'overline solid rgba(0, 0, 0, .2)' : 'none', @@ -239,7 +241,9 @@ export class Annotations { after: { backgroundColor: new ThemeColor('gitlens.trailingLineBackgroundColor'), color: new ThemeColor('gitlens.trailingLineForegroundColor'), - contentText: Strings.pad(message.replace(/ /g, GlyphChars.Space), 1, 1) + contentText: Strings.pad(message.replace(/ /g, GlyphChars.Space), 1, 1), + fontWeight: 'normal', + fontStyle: 'normal' } } as DecorationInstanceRenderOptions } as DecorationOptions;