Change:
It is now possible to have editor actions in the custom title bar even when tabs are enabled. However in that case, there is no entry in the context menu of the custom title to remove the editor actions again from the title: !
verification steps: or click title bar context menu =should be able to toggle editor actions
<!-- UNABLETOLOCATECOMMITMESSAGE issue --Issue marked as unreleased but unable to locate closing commit in issue timeline. You can manually reference a commit by commenting , or directly add the label if you know this has already been releaased

Discussion:
registerAction2(class ToggleEditorActions extends Action2 { static readonly settingsID = `workbench.editor.editorActionsLocation`; constructor() { <ins> const titleBarContextCondition = ContextKeyExpr.and( ContextKeyExpr.equals(`config.workbench.editor.showTabs`, 'none').negate(), ContextKeyExpr.equals(`config.${ToggleEditorActions.settingsID}`, 'default'), )?.negate(); </ins> super({ id: `toggle.${ToggleEditorActions.settingsID}`, title: localize('toggle.editorActions', 'Editor Actions'), toggled: ContextKeyExpr.equals(`config.${ToggleEditorActions.settingsID}`, 'hidden').negate(), menu: [ <del> { id: MenuId.TitleBarContext, order: 3, when: ContextKeyExpr.equals(`config.workbench.editor.showTabs`, 'none') }, { id: MenuId.TitleBarTitleContext, order: 3, when: ContextKeyExpr.equals(`config.workbench.editor.showTabs`, 'none'), group: '2_config' } </del> <ins> { id: MenuId.TitleBarContext, order: 3, when: titleBarContextCondition }, { id: MenuId.TitleBarTitleContext, order: 3, when: titleBarContextCondition, group: '2_config' } </ins> ] }); }

run(accessor: ServicesAccessor, ...args: any[]): void { const configService = accessor.get(IConfigurationService); const storageService = accessor.get(IStorageService); <del> const value = configService.getValue<string>(ToggleEditorActions.settingsID); if (value === 'hidden') { const storedValue = storageService.get(ToggleEditorActions.settingsID, StorageScope.PROFILE); configService.updateValue(ToggleEditorActions.settingsID, storedValue ?? 'default'); } else { </del> <ins> const location = configService.getValue<string>(ToggleEditorActions.settingsID); if (location === 'hidden') { const showTabs = configService.getValue<string>('workbench.editor.showTabs'); // If tabs are visible, then set the editor actions to be in the title bar if (showTabs !== 'none') { configService.updateValue(ToggleEditorActions.settingsID, 'titleBar'); } // If tabs are not visible, then set the editor actions to the last location the were before being hidden else { const storedValue = storageService.get(ToggleEditorActions.settingsID, StorageScope.PROFILE); configService.updateValue(ToggleEditorActions.settingsID, storedValue ?? 'default'); } storageService.remove(ToggleEditorActions.settingsID, StorageScope.PROFILE); } // Store the current value (titleBar or default) in the storage service for later to restore else { </ins> configService.updateValue(ToggleEditorActions.settingsID, 'hidden'); <del> storageService.store(ToggleEditorActions.settingsID, value, StorageScope.PROFILE, StorageTarget.USER); </del> <ins> storageService.store(ToggleEditorActions.settingsID, location, StorageScope.PROFILE, StorageTarget.USER); </ins> } } });