Skip to content

Commit 917576c

Browse files
authored
rendering whitespace in overlay for lines with variable heights and fonts (#298247)
1 parent cf2e099 commit 917576c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/vs/editor/browser/viewParts/viewLines/viewLine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class ViewLine implements IVisibleLine {
116116
const lineData = viewportData.getViewLineRenderingData(lineNumber);
117117
const options = this._options;
118118
const actualInlineDecorations = LineDecoration.filter(lineData.inlineDecorations, lineNumber, lineData.minColumn, lineData.maxColumn);
119-
const renderWhitespace = (lineData.hasVariableFonts || options.experimentalWhitespaceRendering === 'off') ? options.renderWhitespace : 'none';
119+
const renderWhitespace = options.experimentalWhitespaceRendering === 'off' ? options.renderWhitespace : 'none';
120120
const allowFastRendering = !lineData.hasVariableFonts;
121121

122122
// Only send selection information when needed for rendering whitespace

src/vs/editor/browser/viewParts/whitespace/whitespace.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ export class WhitespaceOverlay extends DynamicViewOverlay {
122122
}
123123

124124
private _applyRenderWhitespace(ctx: RenderingContext, lineNumber: number, selections: OffsetRange[] | null, lineData: ViewLineRenderingData): string {
125-
if (lineData.hasVariableFonts) {
126-
return '';
127-
}
128125
if (this._options.renderWhitespace === 'selection' && !selections) {
129126
return '';
130127
}

0 commit comments

Comments
 (0)