Keeps the hover info in the whitespace area at the start of the current line

This commit is contained in:
Eric Amodio
2017-07-28 18:19:45 -04:00
parent a272f8f6a4
commit 0bd31099ce
2 changed files with 12 additions and 6 deletions

View File

@@ -62,8 +62,8 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase {
compacted = true;
}
// const firstNonWhitespace = document.lineAt(line).firstNonWhitespaceCharacterIndex;
gutter.range = new Range(line, 0, line, 0); // document.validateRange(new Range(line, 0, line, firstNonWhitespace));
const endIndex = document.lineAt(line).firstNonWhitespaceCharacterIndex;
gutter.range = new Range(line, 0, line, endIndex);
decorations.push(gutter);
if (details !== undefined) {
@@ -93,8 +93,8 @@ export class GutterBlameAnnotationProvider extends BlameAnnotationProviderBase {
Annotations.applyHeatmap(gutter, commit.date, now);
}
// const firstNonWhitespace = document.lineAt(line).firstNonWhitespaceCharacterIndex;
gutter.range = new Range(line, 0, line, 0); // document.validateRange(new Range(line, 0, line, firstNonWhitespace));
const endIndex = document.lineAt(line).firstNonWhitespaceCharacterIndex;
gutter.range = new Range(line, 0, line, endIndex);
decorations.push(gutter);
if (cfg.hover.details) {