Skip to content

Commit 9164f5d

Browse files
authored
Unexpected context menu (fix microsoft#194131) (microsoft#194385)
1 parent 623feb6 commit 9164f5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/workbench/browser/actions/layoutActions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,14 +504,15 @@ abstract class BaseToggleBooleanSettingAction extends Action2 {
504504
// --- Toggle Tabs Visibility
505505

506506
export class ToggleTabsVisibilityAction extends BaseToggleBooleanSettingAction {
507+
507508
static readonly ID = 'workbench.action.toggleTabsVisibility';
508509

509510
constructor() {
510511
super({
511512
id: ToggleTabsVisibilityAction.ID,
512513
title: {
513-
value: localize('toggleTabs', "Toggle Tab Visibility"),
514-
original: 'Toggle Tab Visibility'
514+
value: localize('toggleTabs', "Toggle Editor Tab Visibility"),
515+
original: 'Toggle Editor Tab Visibility'
515516
},
516517
category: Categories.View,
517518
f1: true

src/vs/workbench/browser/parts/editor/editor.contribution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SID
376376
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: localize('showOpenedEditors', "Show Opened Editors") }, group: '3_open', order: 10 });
377377
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: localize('closeAll', "Close All") }, group: '5_close', order: 10 });
378378
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: localize('closeAllSaved', "Close Saved") }, group: '5_close', order: 20 });
379-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ToggleTabsVisibilityAction.ID, title: localize('toggleTabs', "Editor Tabs"), toggled: ContextKeyExpr.has('config.workbench.editor.showTabs') }, group: '7_settings', order: 5, when: ContextKeyExpr.has('config.workbench.editor.showTabs').negate() /* only shown here when tabs are disabled */ });
380379
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: localize('togglePreviewMode', "Enable Preview Editors"), toggled: ContextKeyExpr.has('config.workbench.editor.enablePreview') }, group: '7_settings', order: 10 });
381380
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: localize('lockGroup', "Lock Group"), toggled: ActiveEditorGroupLockedContext }, group: '8_lock', order: 10, when: MultipleEditorGroupsContext });
382381

0 commit comments

Comments
 (0)