From a6d24e1bf40eb1885af74e5112f66c3400a65fd7 Mon Sep 17 00:00:00 2001 From: Lee Murray Date: Thu, 25 Jun 2026 16:25:07 +0100 Subject: [PATCH] Respect user input casing for File Explorer root header (#322961) style: respect user input casing for File Explorer root header Co-authored-by: mrleemurray Co-authored-by: Copilot --- .../styleOverrides/browser/media/fontRamp.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/vs/workbench/contrib/styleOverrides/browser/media/fontRamp.css b/src/vs/workbench/contrib/styleOverrides/browser/media/fontRamp.css index 89cc2999b02..d54c0f6abff 100644 --- a/src/vs/workbench/contrib/styleOverrides/browser/media/fontRamp.css +++ b/src/vs/workbench/contrib/styleOverrides/browser/media/fontRamp.css @@ -136,6 +136,18 @@ font-size: var(--vscode-bodyFontSize-small); } +/* + * File Explorer root header — respect the real casing of the workspace / folder + * name (user input). `text-transform: none` overrides both the base + * `uppercase` rule and the `capitalize` override above (the `:has(...)` + * argument raises specificity). System labels such as "Untitled (Workspace)" + * are already title-cased in source, so they still render correctly; only + * user-provided folder names (e.g. "vscode-dev") are left untouched. + */ +.style-override .monaco-pane-view .pane > .pane-header:has(> .icon.codicon-explorer-view-icon) > .title { + text-transform: none; +} + /* * Drop the active-tab underline on the auxiliary bar composite header so a * single-composite header (e.g. the secondary side bar "Chat") reads as a plain