mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-14 18:48:28 -05:00
Changes the start of line decoration to be both only
This commit is contained in:
@@ -354,17 +354,21 @@ export class BlameActiveLineController extends Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as DecorationInstanceRenderOptions
|
} 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
|
// Add a hover decoration to the area between the start of the line and the first non-whitespace character
|
||||||
{
|
decorationOptions.push({
|
||||||
range: range.with({
|
range: range.with({
|
||||||
end: range.end.with({
|
end: range.end.with({
|
||||||
character: editor.document.lineAt(range.end.line).firstNonWhitespaceCharacterIndex
|
character: editor.document.lineAt(range.end.line).firstNonWhitespaceCharacterIndex
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
hoverMessage: hoverMessage
|
hoverMessage: hoverMessage
|
||||||
} as DecorationOptions
|
} as DecorationOptions);
|
||||||
];
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'hover':
|
case 'hover':
|
||||||
@@ -374,6 +378,7 @@ export class BlameActiveLineController extends Disposable {
|
|||||||
hoverMessage: hoverMessage
|
hoverMessage: hoverMessage
|
||||||
} as DecorationOptions
|
} as DecorationOptions
|
||||||
];
|
];
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user