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

Ability to contribute actions to context menu of extension in extensions viewlet #87285

Closed
sandy081 opened this issue Dec 18, 2019 · 1 comment
Assignees
Labels
api extensions Issues concerning extensions feature-request Request for new features or functionality on-testplan
Milestone

Comments

@sandy081
Copy link
Member

Ability to contribute actions to context menu of extension in extensions viewlet

@sandy081 sandy081 added feature-request Request for new features or functionality api extensions Issues concerning extensions labels Dec 18, 2019
@sandy081 sandy081 added this to the December/January 2020 milestone Dec 18, 2019
@sandy081 sandy081 self-assigned this Dec 18, 2019
@sandy081
Copy link
Member Author

sandy081 commented Dec 30, 2019

Exposed new menu location extension/context to contribute actions for an extension. Eg:

"menus": {
			"extension/context": [
				{
					"command": "extension.helloWorld",
					"group": "2_configure"
				}
			]
		}

extension id is passed as an argument to the registered command.

vscode.commands.registerCommand('extension.helloWorld', (extensionId) => {
		vscode.window.showInformationMessage(extensionId);
	});

You can use the when condition "when": "extensionStatus==installed" if you want to have the action only on installed extensions.

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api extensions Issues concerning extensions feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests

1 participant