Skip to content

Commit d8c2678

Browse files
authored
Add share context menu action (microsoft#236699)
share context menu action
1 parent 502a7e5 commit d8c2678

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/browser/parts/titlebar/titlebarActions.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ registerAction2(class ToggleNavigationControl extends ToggleTitleBarConfigAction
6464
}
6565
});
6666

67+
registerAction2(class ToggleShareControl extends ToggleTitleBarConfigAction {
68+
constructor() {
69+
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'));
70+
}
71+
});
72+
6773
registerAction2(class ToggleLayoutControl extends ToggleTitleBarConfigAction {
6874
constructor() {
6975
super(LayoutSettings.LAYOUT_ACTIONS, localize('toggle.layout', 'Layout Controls'), localize('toggle.layoutDescription', "Toggle visibility of the Layout Controls in title bar"), 3, true);

0 commit comments

Comments
 (0)