Skip to content

feat(workbench): allow side bar content font customization - #340334

Open
Liu (Fs2qFtoS) wants to merge 1 commit into
microsoft:mainfrom
Fs2qFtoS:feat/sidebar-font
Open

Liu (Fs2qFtoS) wants to merge 1 commit into
microsoft:mainfrom
Fs2qFtoS:feat/sidebar-font

Conversation

@Fs2qFtoS

Copy link
Copy Markdown
Contributor

Side bar content currently uses the workbench font, so users need window zoom or custom CSS to adjust file-tree text independently. This change adds application-scoped workbench.sideBar.fontFamily and workbench.sideBar.fontSize settings for content in both the primary and secondary side bars.

Changes apply immediately. Clearing the font family and resetting the size to 13 restores the existing CSS defaults. Font size is limited to 9–16px to fit the existing fixed-height tree rows. The bottom panel and side bar title styling retain their existing behavior; embedded editors and extension webviews keep their own font settings.

Related to #10605 and #519. This addresses the side bar content portion of those requests; the broader workbench-font request remains open.

Validation

  • npm run typecheck-client — passed.
  • Targeted npm run eslint -- for the three changed files — passed.
  • npm run build-fast -- --client-only — passed.
  • npm run test-browser-no-install -- --browser chromium-chrome --run src/vs/workbench/test/browser/parts/paneCompositePart.test.ts --run src/vs/workbench/test/browser/parts/sidebar/sidebarPart.test.ts --run src/vs/workbench/test/browser/parts/auxiliaryBarPart.test.ts — 8 passing on macOS.
  • git diff --check — passed.

The new browser tests verify computed font inheritance, live updates, reset behavior, size bounds, and panel isolation. Full desktop manual testing and Windows/Linux validation have not been performed.

Manual verification

Set workbench.sideBar.fontFamily to JetBrains Mono (when installed) and workbench.sideBar.fontSize to 14. Check Explorer, Search, Source Control and a view moved to the secondary side bar. Change the size to 16, then reset both settings. Verify that labels remain readable and that icons, inline rename inputs, selection and scrolling behave correctly.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/workbench/browser/parts/paneCompositePart.ts

@Fs2qFtoS

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants