Skip to content

Commit 309328f

Browse files
authored
Merge pull request microsoft#259424 from microsoft/tyriar/259002
Add new terminal to tab well and empty editor menus
2 parents 6721201 + e1dd859 commit 309328f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,26 @@ export function setupTerminalMenus(): void {
188188
]
189189
);
190190

191+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, {
192+
command: {
193+
id: TerminalCommandId.CreateTerminalEditorSameGroup,
194+
title: terminalStrings.new
195+
},
196+
group: '1_file',
197+
order: 30,
198+
when: TerminalContextKeys.processSupported
199+
});
200+
201+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, {
202+
command: {
203+
id: TerminalCommandId.CreateTerminalEditorSameGroup,
204+
title: terminalStrings.new
205+
},
206+
group: '1_file',
207+
order: 30,
208+
when: TerminalContextKeys.processSupported
209+
});
210+
191211
MenuRegistry.appendMenuItems(
192212
[
193213
{

0 commit comments

Comments
 (0)