Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlameDecorator

Hierarchy

  • BlameDecorator

Implements

  • HoverProvider

Index

Properties

Protected appliedDecorations

appliedDecorations: Map<string, AppliedBlameDecorations> = new Map<string, AppliedBlameDecorations>()

Protected Readonly editorManager

editorManager: EditorManager

Protected now

now: Moment = moment()

Static continuationStyle

continuationStyle: EditorDecorationStyle = new EditorDecorationStyle('git-blame-continuation-line::before', style => {style.content = "'\u2007'"; // blank})

Static defaultGutterStyles

defaultGutterStyles: CSSStyleDeclaration = <CSSStyleDeclaration>{width: `${maxWidth}ch`,color: 'var(--theia-gitlens-gutterForegroundColor)',backgroundColor: 'var(--theia-gitlens-gutterBackgroundColor)',height: '100%',margin: '0 26px -1px 0',display: 'inline-block',borderRight: '2px solid',}

Static highlightStyle

highlightStyle: EditorDecorationStyle = new EditorDecorationStyle('git-blame-highlight::before', style => {style.backgroundColor = 'var(--theia-gitlens-lineHighlightBackgroundColor)';})

Static maxWidth

maxWidth: 50 = 50

Methods

decorate

Protected formatContentLine

  • formatContentLine(commit: Commit, commitTime: Moment): string

Protected getHeatColor

  • getHeatColor(commitTime: Moment): string

Protected getShaForLine

  • getShaForLine(blame: GitFileBlame, line: number): string | undefined

provideHover

  • provideHover(model: ITextModel, position: Position, token: CancellationToken): Promise<Hover>

Protected registerHoverProvider

  • registerHoverProvider(uri: string): Disposable

Protected toDecorations

Object literals

Protected emptyHover

emptyHover: object

contents

contents: { value: string }[] = [{value: ''}]