Repository navigation
workbench: add workbench.fontSize and workbench.fontFamily settings - #341761
Draft
Logan Ramos (lramos15) wants to merge 4 commits into
Draft
Logan Ramos (lramos15) wants to merge 4 commits into
Logan Ramos (lramos15) wants to merge 4 commits into
Conversation
…519) Adds settings to change the font size and font family of the workbench UI without zooming, for the main, auxiliary and Agents windows. Text, list and tree rows, chrome (title, activity and status bars, tabs, pane headers) and icons follow the UI font size; editors, the terminal and other content with their own font settings keep them, and chat and the SCM input follow the UI font unless chat.fontSize or scm.inputFontSize are set. Webviews receive the values through their exported theme variables. The typography state lives in base/browser/fonts.ts. Lists opt into live re-measurement with followsUITypography, JS metrics use scaleUIMetric/getStandardRowHeight/growByStandardRow, and CSS reads --vscode-font-scale, --vscode-icon-scale, --vscode-list-row-height and the scaled font size tokens. Every CSS replacement keeps the old value as its fallback, so the default rendering is unchanged. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
5 open findings
Recompute open peek layout when typography changes · New Scale outside-card button height for larger icons and text · New Scale code-block toolbar and action slots with typography · New Apply reporter theme size variables to the inner workbench · New Scale error rows and inner height for larger typography · New
What changed in this PR
The supplied changes propagate configurable workbench typography across shared controls, workbench views, auxiliary windows, and the Agents Window.
Changes:
- Replace fixed UI dimensions with typography-aware metrics and CSS variables.
- Refresh list sizing and layout when typography changes.
- Update Issue Reporter integration, fixtures, and test expectations.
| File | Description |
|---|---|
| src/vs/workbench/test/browser/componentFixtures/sessions/sessionChatInputToolbar.fixture.ts | Updated as part of this pull request. |
| src/vs/workbench/test/browser/componentFixtures/chat/chatSessionArchiveNudge.fixture.ts | Updated as part of this pull request. |
| src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css | Updated as part of this pull request. |
| src/vs/workbench/services/themes/test/browser/fileIconThemeData.test.ts | Updated as part of this pull request. |
| src/vs/workbench/services/themes/browser/fileIconThemeData.ts | Updated as part of this pull request. |
| src/vs/workbench/services/suggest/browser/media/suggest.css | Updated as part of this pull request. |
| src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.ts | Updated as part of this pull request. |
| src/vs/workbench/services/agentEditorComments/browser/media/agentEditorCommentsOverlayWidget.css | Updated as part of this pull request. |
| src/vs/workbench/electron-browser/parts/titlebar/titlebarPart.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/update/browser/media/updateTooltip.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/update/browser/media/postUpdateWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/timeline/browser/media/timelinePane.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/testing/browser/testResultsView/testResultsTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/testing/browser/testResultsView/testResultsOutput.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/testing/browser/testingExplorerView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/testing/browser/testCoverageView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/terminal/browser/media/terminal.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/surveys/browser/media/surveyEditorPane.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/search/browser/searchView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/search/browser/searchResultsView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/search/browser/searchFindInput.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/scm/browser/scm.contribution.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/remote/browser/remote.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/remote/browser/media/tunnelView.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/remote/browser/media/remoteViewlet.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/processExplorer/browser/processExplorerControl.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/preferences/browser/tocTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/preferences/browser/settingsTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/preferences/browser/media/preferencesEditor.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/outline/browser/outlinePane.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/modernUI/browser/media/padding.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/mcp/browser/media/mcpServerEditor.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/mcp/browser/media/mcpServerAction.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/mcp/browser/mcpServersView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/markers/browser/media/markers.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/markers/browser/markersView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/markers/browser/markersTreeViewer.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/markers/browser/markersTable.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/issue/test/browser/issueFormService.test.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/issue/electron-browser/nativeIssueFormService.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/issue/browser/issueFormService.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/imageCarousel/browser/media/imageCarousel.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/files/browser/views/media/openeditors.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/files/browser/views/explorerViewer.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/files/browser/views/explorerView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/files/browser/media/explorerviewlet.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/media/extensionActions.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/extensionsViewlet.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/extensionsList.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/debug/browser/watchExpressionsView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/debug/browser/variablesView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/debug/browser/media/debug.contribution.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/debug/browser/media/callStackWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/debug/browser/loadedScriptsView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/comments/browser/media/panel.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/test/browser/widget/input/chatInputPart.test.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/electron-browser/media/tunnelHost.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/electron-browser/agentSessions/media/openInAgents.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/media/chatAgentHover.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotice.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSystemNotificationContentPart.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentOpenChat.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatRichLink.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatMcpServersInteractionContent.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatExtensionsContent.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatDisabledClaudeHooksContent.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/voiceInputMode/media/voiceInputMode.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chatOutline.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/media/customizationMigrationDashboard.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationDiscovery.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/media/sessionSummaryHover.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostModePicker.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css | Updated as part of this pull request. |
| src/vs/workbench/contrib/chat/browser/agentPluginsView.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.ts | Updated as part of this pull request. |
| src/vs/workbench/contrib/browserView/browser/media/browserWelcome.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/views/viewFilter.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/views/treeView.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/views/media/paneviewlet.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/notifications/notificationsCenter.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/media/editortabscontrol.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/media/editorstatus.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/media/editorplaceholder.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/editorHeaderControl.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/compositeBar.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/banner/media/bannerpart.css | Updated as part of this pull request. |
| src/vs/workbench/browser/parts/banner/bannerPart.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/part.ts | Updated as part of this pull request. |
| src/vs/workbench/browser/media/chatPills.css | Updated as part of this pull request. |
| src/vs/workbench/browser/chatPills.ts | Updated as part of this pull request. |
| src/vs/sessions/contrib/sessions/browser/media/sessionsViewPane.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/sessions/browser/media/sessionsTitleBarWidget.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/sessions/browser/media/sessionsListNotice.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/sessions/browser/media/newSessionActionViewItem.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/sessionInputBanners/browser/media/sessionInputBanners.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostFilter.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/policyBlocked/browser/media/sessionsPolicyBlocked.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/editor/browser/media/editorHeader.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/editor/browser/media/editorBreadcrumbs.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/chat/test/browser/chatView.fixture.ts | Updated as part of this pull request. |
| src/vs/sessions/contrib/chat/browser/sessionChatInputToolbar.ts | Updated as part of this pull request. |
| src/vs/sessions/contrib/chat/browser/media/chatInput.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/sessionChangesEditor.ts | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/media/sessionChangesEditorInput.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/media/checksWidget.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/media/changesViewActions.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/media/changesView.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/changes/browser/media/changesActions.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/automations/browser/media/automationDialog.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/aquarium/browser/media/aquarium.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/aiCustomizationTreeView/browser/media/aiCustomizationTreeView.css | Updated as part of this pull request. |
| src/vs/sessions/contrib/aiCustomizationTreeView/browser/aiCustomizationTreeViewViews.ts | Updated as part of this pull request. |
| src/vs/sessions/browser/parts/titlebarPart.ts | Updated as part of this pull request. |
| src/vs/sessions/browser/parts/sidebarPart.ts | Updated as part of this pull request. |
| src/vs/sessions/browser/parts/mobile/media/mobileSortGroupSheet.css | Updated as part of this pull request. |
| src/vs/sessions/browser/parts/mobile/media/mobileSessionFilterChips.css | Updated as part of this pull request. |
| src/vs/sessions/browser/parts/media/editorPart.css | Updated as part of this pull request. |
| src/vs/sessions/browser/media/phoneLayout.css | Updated as part of this pull request. |
| src/vs/platform/quickinput/browser/tree/quickInputTreeController.ts | Updated as part of this pull request. |
| src/vs/platform/quickinput/browser/tree/quickInputDelegate.ts | Updated as part of this pull request. |
| src/vs/platform/hover/browser/hover.css | Updated as part of this pull request. |
| src/vs/platform/actions/browser/menuEntryActionViewItem.css | Updated as part of this pull request. |
| src/vs/editor/contrib/peekView/browser/peekView.ts | Updated as part of this pull request. |
| src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css | Updated as part of this pull request. |
| src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.ts | Updated as part of this pull request. |
| src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/tree/media/tree.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/tree/media/paneviewlet.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/toggle/toggle.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/toggle/toggle.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/splitview/paneview.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/selectBox/selectBoxCustom.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/selectBox/selectBox.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/segmentedIconToggle/segmentedIconToggle.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/scrollbar/media/scrollbars.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/menu/menubar.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/list/listWidget.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/list/listPaging.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/list/list.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/inputbox/inputBox.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/inputbox/inputBox.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/icons/iconSelectBox.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/iconLabel/iconlabel.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/hover/hoverWidget.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/findinput/replaceInput.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/findinput/findInput.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/findinput/findInput.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/dropdown/dropdown.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/dnd/dnd.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/dialog/dialog.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/countBadge/countBadge.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/contextview/contextview.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/codicons/codicon/codicon.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/button/button.css | Updated as part of this pull request. |
| src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.ts | Updated as part of this pull request. |
| src/vs/base/browser/ui/actionbar/actionbar.css | Updated as part of this pull request. |
| build/lib/stylelint/vscode-known-variables.json | Updated as part of this pull request. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Peek views relayout their head when the UI typography changes while they are open, since that does not change the size of the view zone. - The Changes view buttons and the chat code block toolbar and its action slots grow with the UI font, so icon actions are not clipped. - The issue reporter applies the typography to its `.monaco-workbench` container, which theme variables and live updates target, not `body`. - Testing error rows and their message box grow with the UI font. Co-authored-by: Copilot <[email protected]>
Contributor
|
Base:
|
Logan Ramos (lramos15)
requested a review
from Benjamin Christopher Simmonds (benibenj)
October 15, 2026 23:11
Picks up the upstream fix for the load-order dependent Sessions Panel Part test (25a2feb) that failed CI on this branch. Co-authored-by: Copilot <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #519
Adds two settings that change the font of the workbench UI without zooming everything:
workbench.fontSize: number, default13, range 10–28. Application scope,accessibilitytag.workbench.fontFamily: string, defaultdefault(the system UI font). Application scope,accessibilitytag, with font suggestions likeeditor.fontFamily.They apply to the main window, auxiliary windows, the Agents window and the Issue Reporter, and changes take effect live.
What changes
chat.fontSize/chat.fontFamily) and the SCM commit input (scm.inputFontSize). The setting descriptions say so.--vscode-font-size/--vscode-font-familyvariables and the scaled font-size tokens.How it works
base/browser/fonts.tsholds it and exposes:getUITypographyandonDidChangeUITypography, which fires after the CSS is applied.scaleUIMetric, which scales a px value proportionally and is the identity at 13px or below.list.tsbuilds on it withgetStandardRowHeightandgrowByStandardRow.followsUITypography.ListView.refreshElementMetrics()then re-measures rows in one pass and keeps focus, selection and the scroll anchor. Tables re-read their header height.--vscode-font-scale,--vscode-icon-scale,--vscode-list-row-heightand the scaled font-size tokens.WorkbenchTypographyContributionsets them inline on each workbench container, and only when the typography is not the default.var()fallback, and every JS helper is the identity at 13px.Reviewer notes
font-size: 12px→var(--vscode-fontSize-label1, 12px)line-height: 18px→calc(18px * var(--vscode-font-scale, 1))calc(16px * var(--vscode-icon-scale, 1))calc(28px + var(--vscode-list-row-height, 22px) - 22px), which matchesgrowByStandardRow(28)in JSInputBox.paddingRightnow also accepts a CSS length. Find inputs use it to reserve toggle space that grows with the icons.How to test
"workbench.fontSize": 20and"workbench.fontFamily": "Georgia".--agents) all grow consistently, and that editors and the terminal don't.Validation
npx tsc --project ./src/tsconfig.json --noEmit --skipLibCheck— passed.npm run eslint -- <changed .ts files>(153 files) — passed.node build/stylelint.ts <changed .css files>(172 files) — passed. The design-token suggestions it prints are informational.npm run valid-layers-check— passed../scripts/test.sh --reporter dot --runGlob "vs/{base/test/browser/fonts,base/test/browser/ui/list/listView,workbench/test/browser/workbenchTypography,workbench/contrib/webview/test/browser/themeing,workbench/contrib/chat/test/browser/widget/input/chatInputPart,workbench/contrib/chat/test/browser/aiCustomization/*,sessions/test/browser/*}.test.js"./scripts/test.sh --reporter dot):CopilotAgent,Open Agent Host State File,AgentHostChatContribution) and fail the same way without this change.