Skip to content

fix: making the line height multiplier at least as big as the font size multiplier#289364

Merged
aiday-mar merged 5 commits intomainfrom
silent-ant
Jan 22, 2026
Merged

fix: making the line height multiplier at least as big as the font size multiplier#289364
aiday-mar merged 5 commits intomainfrom
silent-ant

Conversation

@aiday-mar
Copy link
Contributor

fixes #288844

Copilot AI review requested due to automatic review settings January 21, 2026 12:00
@aiday-mar aiday-mar self-assigned this Jan 21, 2026
@aiday-mar aiday-mar requested a review from alexdima January 21, 2026 12:02
@aiday-mar aiday-mar marked this pull request as ready for review January 21, 2026 12:03
@aiday-mar aiday-mar enabled auto-merge (squash) January 21, 2026 12:03
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 21, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where the line height could be smaller than the font size in token color customizations, which would cause rendering problems. The fix ensures that whenever a fontSize is specified in textMate rules, the lineHeight is automatically adjusted to be at least as large as the fontSize.

Changes:

  • Modified tokenColorCustomizations getter to enforce minimum lineHeight equal to fontSize for all textMateRules

Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I made a small tweak to compute it only when it is not explicitly set

@aiday-mar aiday-mar merged commit 47819e9 into main Jan 22, 2026
22 checks passed
@aiday-mar aiday-mar deleted the silent-ant branch January 22, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuring just the fontSize pushes the text off center

4 participants