Skip to content

Conversation

octref
Copy link
Contributor

@octref octref commented Aug 15, 2019

No description provided.

@octref octref requested a review from jrieken August 15, 2019 02:48
@octref octref force-pushed the pine/global-link-protection branch from 9c3e8e2 to c5e631c Compare August 15, 2019 02:49
@octref octref force-pushed the pine/global-link-protection branch from f52a44b to 970538a Compare August 19, 2019 04:57
'Configure Trusted Domains'
);
CommandsRegistry.registerCommand({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrieken I'm not quite sure if this is the right code. Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions).registerWorkbenchAction doesn't make the command available in command registry to be run with args, so I had to register it separately.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need any of the action stuff. it is enough to register the command (registerCommand) and make it show in the command palette it's enough to call MenuRegistry.appendMenuItem with the command palette menu id, like so:

MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks for the pointer.

Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 it

@octref octref merged commit 8e78c6b into master Aug 19, 2019
@octref octref deleted the pine/global-link-protection branch August 19, 2019 16:14
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants