mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Implement a different method to render whitespace, using a separate layer
This commit is contained in:
@@ -29,6 +29,10 @@ export class ViewOverlays extends ViewPart implements IVisibleLinesHost<ViewOver
|
||||
this._visibleLines = new VisibleLinesCollection<ViewOverlayLine>(this);
|
||||
this.domNode = this._visibleLines.domNode;
|
||||
|
||||
const options = this._context.configuration.options;
|
||||
const fontInfo = options.get(EditorOption.fontInfo);
|
||||
applyFontInfo(this.domNode, fontInfo);
|
||||
|
||||
this._dynamicOverlays = [];
|
||||
this._isFocused = false;
|
||||
|
||||
@@ -86,6 +90,11 @@ export class ViewOverlays extends ViewPart implements IVisibleLinesHost<ViewOver
|
||||
const line = this._visibleLines.getVisibleLine(lineNumber);
|
||||
line.onConfigurationChanged(e);
|
||||
}
|
||||
|
||||
const options = this._context.configuration.options;
|
||||
const fontInfo = options.get(EditorOption.fontInfo);
|
||||
applyFontInfo(this.domNode, fontInfo);
|
||||
|
||||
return true;
|
||||
}
|
||||
public override onFlushed(e: viewEvents.ViewFlushedEvent): boolean {
|
||||
|
||||
Reference in New Issue
Block a user