Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

When the secondary sidebar contains only a single view container, the tab bar serves no purpose and wastes vertical space.

Changes

Modified auxiliaryBarPart.ts to hide the composite bar (view container tabs) when ≤1 container is visible:

  • shouldShowCompositeBar(): Returns false when getVisiblePaneCompositeIds().length ≤ 1
  • Event listeners: Added handlers for onDidChangeViewContainers, onDidChangeContainerLocation, and onDidPaneCompositeOpen/Close to dynamically update visibility as containers are added/removed/moved

The tabs now appear/disappear automatically as view containers are added to or removed from the secondary sidebar. Primary sidebar and panel behavior unchanged.

Testing

  1. Move single view container (e.g., Chat) to secondary sidebar → tabs hidden
  2. Add second container → tabs appear
  3. Remove until one remains → tabs hide
  4. Verify behavior with activity bar at different positions (top/bottom/hidden/default)
Original prompt

This section details on the original issue you should resolve

<issue_title>Hide view container tabs in secondary sidebar when only one view container is present</issue_title>
<issue_description>When I'm using the secondary sidebar with only a single view (like Chat), the view container tabs still take up valuable vertical space even though there's nothing to switch between.

Proposal:
When there's only one view container in the secondary sidebar, hide the view container tabs entirely since they serve no purpose.

Benefits:

  • Maximizes available space for the actual content
  • Reduces visual clutter when tabs aren't needed
  • Better use of screen real estate, especially for chat interactions

This should help make better use of the available space when the secondary sidebar contains a single view.</issue_description>

Comments on the Issue (you are @copilot in this section)

@sbatten I use activity bar on bottom with icons btw

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Hide view container tabs when only one is present Hide view container tabs in secondary sidebar when only one container present Dec 11, 2025
Copilot AI requested a review from benibenj December 11, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide view container tabs in secondary sidebar when only one view container is present

2 participants