Skip to content

Allow menu contributions to custom viewContainer title bar #74221

@JarrettSpiker

Description

@JarrettSpiker

Currently, it is possible for extensions to contribute custom views, as well as add menu items to those custom views. These menu items appear as icons in the view title bar, which trigger commands when clicked.

For example, I can create a custom view "Jarrett's Example View" and have a refresh action available in the title bar of that view:

currentView

I would like to request that the same functionality be available for custom view containers. That is, I want to be able to add menu items to custom view containers which trigger my commands

We see this functionality in the native view containers. For example, the "Search" view container has 3 icons in its title bar:

searchView

but I don't see a way to mimic this in custom view containers. Being able to do so would be helpful for providing actions global to a particular view container, or to the extension contributing a view container.

For example, I would like to have an icon which will jump you straight to the settings for my extension, and one which will open a help page. These both make sense to associate with my view container, not necessarily individual views.

Thanks for your time

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions