Skip to content

Commit ed44f1b

Browse files
CopilotTyriar
andcommitted
Complete NewInNewWindow terminal command with keybinding and preconditions
Co-authored-by: Tyriar <[email protected]>
1 parent e26cb0f commit ed44f1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,12 @@ export function registerTerminalActions() {
347347
registerTerminalAction({
348348
id: TerminalCommandId.NewInNewWindow,
349349
title: terminalStrings.newInNewWindow,
350+
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.webExtensionContributedProfile),
351+
keybinding: {
352+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.Backquote,
353+
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyMod.Alt | KeyCode.Backquote },
354+
weight: KeybindingWeight.WorkbenchContrib
355+
},
350356
run: async (c) => {
351357
const instance = await c.service.createTerminal({
352358
location: { viewColumn: AUX_WINDOW_GROUP }

0 commit comments

Comments
 (0)