-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Global link protection. Fix #78125 #79154
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
Conversation
9c3e8e2
to
c5e631c
Compare
f52a44b
to
970538a
Compare
'Configure Trusted Domains' | ||
); | ||
CommandsRegistry.registerCommand({ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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, { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 it
No description provided.