Add share context menu action (#236699)

share context menu action
pull/236716/head
Benjamin Christopher Simmonds 2024-12-20 15:25:40 +01:00 committed by GitHub
parent 502a7e5d43
commit d8c2678e9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ registerAction2(class ToggleNavigationControl extends ToggleTitleBarConfigAction
}
});
registerAction2(class ToggleShareControl extends ToggleTitleBarConfigAction {
constructor() {
super('workbench.experimental.share.enabled', localize('toggle.share', 'Share'), localize('toggle.shareDescription', "Toggle visibility of the Share action in title bar"), 2, false, ContextKeyExpr.has('config.window.commandCenter'));
}
});
registerAction2(class ToggleLayoutControl extends ToggleTitleBarConfigAction {
constructor() {
super(LayoutSettings.LAYOUT_ACTIONS, localize('toggle.layout', 'Layout Controls'), localize('toggle.layoutDescription', "Toggle visibility of the Layout Controls in title bar"), 3, true);