Changes the start of line decoration to be both only

This commit is contained in:
Eric Amodio
2017-05-22 18:03:08 -04:00
parent c3bd17edee
commit 8623e661ca

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;
}