Skip to content

Commit bf09717

Browse files
authored
editor - support toggled state for modal editor size (microsoft#295199)
editor - support toggled state for modal editor
1 parent 2a69f02 commit bf09717

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,6 @@ function registerModalEditorCommands(): void {
14471447
icon: Codicon.screenFull,
14481448
toggled: {
14491449
condition: EditorPartModalMaximizedContext,
1450-
icon: Codicon.screenNormal,
14511450
title: localize('restoreModalEditorSize', "Restore Modal Editor")
14521451
},
14531452
menu: {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class ModalEditorPart {
111111
// Create toolbar
112112
disposables.add(scopedInstantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, MenuId.ModalEditorTitle, {
113113
hiddenItemStrategy: HiddenItemStrategy.NoHide,
114+
highlightToggledItems: true,
114115
menuOptions: { shouldForwardArgs: true }
115116
}));
116117

0 commit comments

Comments
 (0)