Skip to content

Adjust font size of code lens annotations#2883

Merged
jwortmann merged 1 commit intosublimelsp:mainfrom
jwortmann:code-lens-fontsize
Apr 25, 2026
Merged

Adjust font size of code lens annotations#2883
jwortmann merged 1 commit intosublimelsp:mainfrom
jwortmann:code-lens-fontsize

Conversation

@jwortmann
Copy link
Copy Markdown
Member

@jwortmann jwortmann commented Apr 24, 2026

Code lenses used "small" font size, which is fine for phantoms, but looks bad in annotations if there are multiple code lenses on a single line, because in that case ST adds a linebreak symbol at the end of the annotation, and then the annotation height doesn't match (see screenshot). Also it looks inconsistent with code action and diagnostic annotations, so let's use regular font size for code lens annotations too.

Before (2x zoom):

before

After:

after

(ignore slightly different annotation colors in the screenshots, which happened because I switched color scheme while the annotation was visible)

@rchl
Copy link
Copy Markdown
Member

rchl commented Apr 25, 2026

On mac (looks better to me):

Before

Screenshot 2026-04-25 at 16 09 44

After

Screenshot 2026-04-25 at 16 10 32

@jwortmann jwortmann merged commit 0b162a1 into sublimelsp:main Apr 25, 2026
8 checks passed
@jwortmann jwortmann deleted the code-lens-fontsize branch April 25, 2026 14:28
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.

2 participants