|
@ -1,15 +1,5 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
import { |
|
|
|
|
|
CancellationToken, |
|
|
|
|
|
Disposable, |
|
|
|
|
|
Hover, |
|
|
|
|
|
languages, |
|
|
|
|
|
MarkdownString, |
|
|
|
|
|
Position, |
|
|
|
|
|
Range, |
|
|
|
|
|
TextDocument, |
|
|
|
|
|
TextEditor, |
|
|
|
|
|
} from 'vscode'; |
|
|
|
|
|
|
|
|
import { CancellationToken, Disposable, Hover, languages, Position, Range, TextDocument, TextEditor } from 'vscode'; |
|
|
import { AnnotationProviderBase } from './annotationProvider'; |
|
|
import { AnnotationProviderBase } from './annotationProvider'; |
|
|
import { ComputedHeatmap, getHeatmapColors } from './annotations'; |
|
|
import { ComputedHeatmap, getHeatmapColors } from './annotations'; |
|
|
import { Container } from '../container'; |
|
|
import { Container } from '../container'; |
|
@ -165,7 +155,7 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase |
|
|
? Hovers.changesMessage(commit, await GitUri.fromUri(document.uri), position.line) |
|
|
? Hovers.changesMessage(commit, await GitUri.fromUri(document.uri), position.line) |
|
|
: undefined, |
|
|
: undefined, |
|
|
]) |
|
|
]) |
|
|
).filter(Boolean) as MarkdownString[]; |
|
|
|
|
|
|
|
|
).filter(<T>(m?: T): m is T => Boolean(m)); |
|
|
|
|
|
|
|
|
return new Hover( |
|
|
return new Hover( |
|
|
messages, |
|
|
messages, |
|
|