Skip to content

feat: allow webviews in secondary side bar for extensions - #247899

Closed
Camila Kuba Silva (CamiKubaSilva) wants to merge 9 commits into
microsoft:mainfrom
CamiKubaSilva:camikubasilva/enable-secondary-sidebar-views
Closed

Camila Kuba Silva (CamiKubaSilva) wants to merge 9 commits into
microsoft:mainfrom
CamiKubaSilva:camikubasilva/enable-secondary-sidebar-views

Conversation

@CamiKubaSilva

Copy link
Copy Markdown

Add support for contributing views to the secondarybar location

Summary

This PR enables extensions to contribute view containers and views to the Secondary Side Bar (secondarybar) using the existing viewsContainers and views contribution points.


What this change does

  • Adds "secondarybar" as a valid location for viewsContainers.
  • Updates the extension point schema and handler logic to register view containers and views under ViewContainerLocation.AuxiliaryBar.
  • Allows contributed views to be displayed in the Auxiliary Bar (aka Secondary Side Bar).

Before

Only "activitybar" and "panel" were accepted locations for contributed view containers:

"viewsContainers": {
  "activitybar": [...],
  "panel": [...]
}

Extensions could not target the Secondary Side Bar for contributed views.


After

Developers can now contribute view containers to the secondarybar:

"viewsContainers": {
  "activitybar": [...],
  "panel": [...],
  "secondarybar": [
    {
      "id": "my-view",
      "title": "My View",
      "icon": "media/icon.svg"
    }
  ]
}

Views inside this container will be rendered in the Auxiliary Bar.


Motivation

Allowing extensions to render in the Secondary Side Bar makes it possible to separate content logically—for example, Explorer in the primary sidebar and a custom Assistant in the secondarybar—without UI conflicts.

This increases flexibility and helps support more complex UI workflows in advanced extension scenarios.

@dmitrivMS

Copy link
Copy Markdown
Collaborator

Main already supports extension-contributed secondary sidebar containers and uses WebviewViewPane for non-tree views there. The capability this PR adds is already in baseline under the finalized secondarySidebar contribution point.

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.

3 participants