Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add viewContainer contribution point #212499

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

thegecko
Copy link
Contributor

@thegecko thegecko commented May 11, 2024

As discussed in #200880 we are keen to add a contribution point to the debug viewlet.

This proposal implements this as well as allowing contributions to other view containers.

To use this proposal, the package.json would look similar to:

{
        ...
	"enabledApiProposals": [
		"viewContainerContext"
	],
	"contributes": {
		"commands": [
			{
				"command": "proposed.dummyMenu",
				"title": "Dummy Menu",
				"icon": "$(beaker)"
			}
		],
		"menus": {
			"view/container/title": [
				{
					"command": "proposed.dummyMenu",
					"group": "navigation",
					"when": "viewContainer == workbench.view.debug"
				}
			]
		}
	},
        ...

An example can be found here: https://github.com/thegecko/vscode-proposed-debug

Screenshot 2024-05-11 at 12 08 52

Partially fixes: #200880

Signed-off-by: thegecko <rob.moran@arm.com>
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.

Debug context menu contribution points
2 participants