Skip to content

feat(editor): editor pane font size follows terminal font size setting#513

Merged
danshapiro merged 1 commit into
mainfrom
feat/editor-font-setting
Jul 8, 2026
Merged

feat(editor): editor pane font size follows terminal font size setting#513
danshapiro merged 1 commit into
mainfrom
feat/editor-font-setting

Conversation

@danshapiro

Copy link
Copy Markdown
Owner

What

Replace Monaco's hard-coded fontSize: 14 in EditorPane.tsx with a subscription to settings.terminal.fontSize (direct 1:1, default 16); live updates ride @monaco-editor/react's built-in options→updateOptions effect (open editors resize without remount, 2-line source change). New EditorPane.fontSize.test.tsx covers default, mount-after-change, live-update-without-remount, clamp. Spec doc included at docs/plans/2026-07-08-editor-font-follows-setting-spec.md.

Why

The Font size setting already drives the terminal, fresh-agent transcript, and global UI scale; the editor pane was the one holdout (follow-up to #511).

Verification

  • TDD
  • npm run check full coordinated suite green (8,698 tests)
  • Lint 0 errors

Generated with Amplifier

The Monaco editor pane hard-coded fontSize: 14, ignoring the Font size
setting that already drives the terminal, the fresh-agent transcript,
and (via --ui-scale) the whole UI. Subscribe to
settings.terminal.fontSize (direct 1:1 mapping, default 16) in the
Monaco options literal; live updates ride @monaco-editor/react's
built-in options -> updateOptions effect, so open editors resize
without remounting.

New EditorPane.fontSize tests cover default, mount-after-change,
live-update without remount, and clamped values. Verified with
npm run check (full coordinated suite green).

Generated with Amplifier

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
@danshapiro danshapiro merged commit c2e7dd2 into main Jul 8, 2026
1 check passed
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.

1 participant