Skip to content

Commit 8885bda

Browse files
authored
Merge pull request microsoft#154424 from microsoft/tyriar/154411
Hide split/kill when tabs never hide
2 parents 189ec9f + 8fdc754 commit 8885bda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ export function setupTerminalMenus(): void {
417417
order: 2,
418418
when: ContextKeyExpr.and(
419419
ContextKeyExpr.equals('view', TERMINAL_VIEW_ID),
420+
ContextKeyExpr.notEquals(`config.${TerminalSettingId.TabsHideCondition}`, 'never'),
420421
ContextKeyExpr.or(
421422
ContextKeyExpr.not(`config.${TerminalSettingId.TabsEnabled}`),
422423
ContextKeyExpr.and(
@@ -451,6 +452,7 @@ export function setupTerminalMenus(): void {
451452
order: 3,
452453
when: ContextKeyExpr.and(
453454
ContextKeyExpr.equals('view', TERMINAL_VIEW_ID),
455+
ContextKeyExpr.notEquals(`config.${TerminalSettingId.TabsHideCondition}`, 'never'),
454456
ContextKeyExpr.or(
455457
ContextKeyExpr.not(`config.${TerminalSettingId.TabsEnabled}`),
456458
ContextKeyExpr.and(

0 commit comments

Comments
 (0)