mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-17 08:50:12 +01:00
fix #84772.
This commit is contained in:
@@ -183,15 +183,18 @@ export class CurrentLineHighlightOverlay extends AbstractLineHighlightOverlay {
|
||||
|
||||
export class CurrentLineMarginHighlightOverlay extends AbstractLineHighlightOverlay {
|
||||
protected _renderOne(ctx: RenderingContext): string {
|
||||
const className = 'current-line current-line-margin' + (this._shouldRenderOther() ? ' current-line-margin-both' : '');
|
||||
const className = 'current-line' + (this._shouldRenderMargin() ? ' current-line-margin' : '') + (this._shouldRenderOther() ? ' current-line-margin-both' : '');
|
||||
return `<div class="${className}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`;
|
||||
}
|
||||
protected _shouldRenderThis(): boolean {
|
||||
protected _shouldRenderMargin(): boolean {
|
||||
return (
|
||||
(this._renderLineHighlight === 'gutter' || this._renderLineHighlight === 'all')
|
||||
&& (!this._renderLineHightlightOnlyWhenFocus || this._focused)
|
||||
);
|
||||
}
|
||||
protected _shouldRenderThis(): boolean {
|
||||
return true;
|
||||
}
|
||||
protected _shouldRenderOther(): boolean {
|
||||
return (
|
||||
(this._renderLineHighlight === 'line' || this._renderLineHighlight === 'all')
|
||||
|
||||
Reference in New Issue
Block a user