File tree Expand file tree Collapse file tree 3 files changed +431
-427
lines changed Expand file tree Collapse file tree 3 files changed +431
-427
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ import { WhitespaceController } from './whitespaceController';
12
12
13
13
export const Decorations = {
14
14
annotation : window . createTextEditorDecorationType ( {
15
- isWholeLine : true
15
+ isWholeLine : true ,
16
+ textDecoration : 'none'
16
17
} as DecorationRenderOptions ) ,
17
18
highlight : undefined as TextEditorDecorationType | undefined
18
19
} ;
@@ -233,7 +234,7 @@ export class AnnotationController extends Disposable {
233
234
for ( const [ key , p ] of this . _annotationProviders ) {
234
235
if ( ! TextDocumentComparer . equals ( p . document , e . document ) ) continue ;
235
236
236
- // TODO: Rework this once https://github.com/Microsoft/vscode/issues/27231 is released in v1.13
237
+ // TODO: Rework this once https://github.com/Microsoft/vscode/issues/27231 is released in v1.13
237
238
// We have to defer because isDirty is not reliable inside this event
238
239
setTimeout ( ( ) => {
239
240
// If the document is dirty all is fine, just kick out since the GitContextTracker will handle it
Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ export class Annotations {
77
77
before : {
78
78
...renderOptions . before ,
79
79
...{
80
- contentText : content ,
81
- margin : '0 26px 0 0'
80
+ contentText : content
82
81
}
83
82
} ,
84
83
dark : {
@@ -113,7 +112,9 @@ export class Annotations {
113
112
before : {
114
113
borderStyle : borderStyle ,
115
114
borderWidth : borderWidth ,
116
- height : cfgFileTheme . separateLines ? 'calc(100% - 1px)' : '100%'
115
+ height : cfgFileTheme . separateLines ? 'calc(100% - 1px)' : '100%' ,
116
+ margin : '0 26px 0 0' ,
117
+ textDecoration : 'none'
117
118
} ,
118
119
dark : {
119
120
backgroundColor : cfgFileTheme . dark . backgroundColor || undefined ,
@@ -123,7 +124,7 @@ export class Annotations {
123
124
backgroundColor : cfgFileTheme . light . backgroundColor || undefined ,
124
125
color : cfgFileTheme . light . foregroundColor || themeDefaults . annotations . file . gutter . light . foregroundColor
125
126
} as DecorationInstanceRenderOptions
126
- } ;
127
+ } as IRenderOptions ;
127
128
}
128
129
129
130
static hover ( commit : GitCommit , renderOptions : IRenderOptions , heatmap : boolean ) : DecorationOptions {
@@ -142,7 +143,8 @@ export class Annotations {
142
143
borderWidth : '0 0 0 2px' ,
143
144
contentText : '\u200B' ,
144
145
height : cfgTheme . annotations . file . hover . separateLines ? 'calc(100% - 1px)' : '100%' ,
145
- margin : '0 26px 0 0'
146
+ margin : '0 26px 0 0' ,
147
+ textDecoration : 'none'
146
148
}
147
149
} as IRenderOptions ;
148
150
}
You can’t perform that action at this time.
0 commit comments