Skip to content

feat: add coderm.titleBar.hideMoreActions to hide title bar overflow#207

Merged
j4rviscmd merged 1 commit into
mainfrom
feat/hide-titlebar-actions
Jun 15, 2026
Merged

feat: add coderm.titleBar.hideMoreActions to hide title bar overflow#207
j4rviscmd merged 1 commit into
mainfrom
feat/hide-titlebar-actions

Conversation

@j4rviscmd

Copy link
Copy Markdown
Owner

Summary

  • Adds Coderm-specific boolean setting coderm.titleBar.hideMoreActions (default: true) that hides the trailing "More Actions" (...) overflow button in the title bar.
  • The button is contributed by WorkbenchToolBar's ToggleMenuAction whenever secondary actions exist (e.g. Copilot Chat's "Open in Agents" / "Chat"). It is suppressed via a body class + scoped CSS rule because the host's overflowBehavior repopulates secondary actions from primary regardless of what callers pass to setActions, so dropping the secondary argument from titlebarPart.ts has no effect.
  • Implementation follows the established Coderm contribution pattern (compare cursorAutoHide.ts, activePaneBorder.ts): one new file under src/vs/workbench/contrib/coderm/browser/, side-effect import in coderm.contribution.ts, README sync for EN/JA. titlebarPart.ts is intentionally left untouched to minimize upstream-merge conflicts.

Test plan

  • Build passes (npm run compile, 0 errors)
  • compile-check-ts-native type check passes
  • Default state (setting = true): the ... button is hidden in the title bar even with extensions that contribute secondary actions (Copilot Chat, etc.) installed
  • Toggling the setting to false at runtime immediately restores the ... button (no reload required)
  • Other title bar actions (layout toggles, accounts, notifications) remain visible in both states
  • No accidental hiding of .codicon-toolbar-more in other toolbars (command center, activity bar, editor toolbar)

🤖 Generated with Claude Code

Adds a Coderm-specific boolean setting (default: true) that hides the
trailing "More Actions" (...) overflow button in the title bar. The
button is contributed by WorkbenchToolBar's ToggleMenuAction whenever
secondary actions exist (e.g. Copilot Chat's "Open in Agents" / "Chat"),
and is suppressed via a body class + scoped CSS rule because the host's
overflowBehavior repopulates secondary actions from primary regardless
of what callers pass to setActions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Jun 15, 2026
@j4rviscmd j4rviscmd merged commit ae7b189 into main Jun 15, 2026
3 checks passed
@j4rviscmd j4rviscmd deleted the feat/hide-titlebar-actions branch June 15, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant