Skip to content

Commit 8cced9f

Browse files
committed
Add new in new window to Terminal menu
Fixes microsoft#259571
1 parent 3f38070 commit 8cced9f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalMenus.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ export function setupTerminalMenus(): void {
4848
order: 1
4949
}
5050
},
51+
{
52+
id: MenuId.MenubarTerminalMenu,
53+
item: {
54+
group: TerminalMenuBarGroup.Create,
55+
command: {
56+
id: TerminalCommandId.NewInNewWindow,
57+
title: localize({ key: 'miNewInNewWindow', comment: ['&& denotes a mnemonic'] }, "New in New &&Window"),
58+
precondition: ContextKeyExpr.has(TerminalContextKeyStrings.IsOpen)
59+
},
60+
order: 2,
61+
when: TerminalContextKeys.processSupported
62+
}
63+
},
5164
{
5265
id: MenuId.MenubarTerminalMenu,
5366
item: {

0 commit comments

Comments
 (0)