Skip to content

Whitespace rendered at incorrect height when using variable line heights and font sizes #298249

@aiday-mar

Description

@aiday-mar
  • Use the setting
    "editor.tokenColorCustomizations": {
        "textMateRules": [
        {
            "scope": "comment.line.double-slash.ts",
            "settings": {
            "fontSize": 3,
            "lineHeight": 3
            }
        }
        ]
    },
  "editor.renderWhitespace": "all",
  • Open the following TS file:

some text before the comment // another comment

  • Notice how the whitespaces are all centered at the middle of the line even when the text is really small like before the line comment 🐛
Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugfont-token-customization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions