Enhance Activitybar layout and item separation - #332002
Merged
Merged
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Improves Activity Bar overflow calculations across classic, compact, and Modern UI layouts.
Changes:
- Derives overflow sizing from rendered item height and spacing.
- Measures global action-bar space directly.
- Adds CSS variable support and regression tests.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
activitybarPart.ts |
Updates sizing and layout calculations. |
globalCompositeBar.ts |
Removes obsolete item-count sizing. |
floatingPanels.css |
Uses the shared action-gap variable. |
activitybarPart.test.ts |
Adds sizing regression coverage. |
vscode-known-variables.json |
Registers the CSS variable. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The global bar height is measured from the DOM rather than derived from the item size, but no test exercised it. Add coverage for one and two global actions so the measured reservation, and the single gap that separates two icons, cannot silently regress. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vijay Upadya (vijayupadya)
approved these changes
Aug 21, 2026
Mohammad javad Dianat (dianatofficial)
left a comment
There was a problem hiding this comment.
Clean implementation. Types and docs are up to date.
|
ActivitybarPart |
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.
The Activity Bar hid view containers behind the "Additional Views" overflow menu while there was still room to show them. This was most visible with the compact Activity Bar and with Modern UI enabled, where it could collapse down to a single icon in a window that comfortably fits all of them.
Changes
--activity-bar-action-gapand consume it infloatingPanels.css, so the rendered spacing and the overflow computation share a single source of truth rather than restating the same value in both places.GlobalCompositeBar.size()has no remaining callers and is removed.Validation
ActivitybarPartunit tests pass.typecheck-client, ESLint, and hygiene are clean.