Browse Source

Changes the start of line decoration to be `both` only

main
Eric Amodio 7 years ago
parent
commit
8623e661ca
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      src/blameActiveLineController.ts

+ 9
- 4
src/blameActiveLineController.ts View File

@ -354,17 +354,21 @@ export class BlameActiveLineController extends Disposable {
}
}
} as DecorationInstanceRenderOptions
} as DecorationOptions,
} as DecorationOptions
];
if (activeLine === 'both') {
// Add a hover decoration to the area between the start of the line and the first non-whitespace character
{
decorationOptions.push({
range: range.with({
end: range.end.with({
character: editor.document.lineAt(range.end.line).firstNonWhitespaceCharacterIndex
})
}),
hoverMessage: hoverMessage
} as DecorationOptions
];
} as DecorationOptions);
}
break;
case 'hover':
@ -374,6 +378,7 @@ export class BlameActiveLineController extends Disposable {
hoverMessage: hoverMessage
} as DecorationOptions
];
break;
}

Loading…
Cancel
Save