@@ -88,6 +88,10 @@ import { IStorageService } from 'vs/platform/storage/common/storage'
8888import { IThemeService } from 'vs/platform/theme/common/themeService'
8989import { ConfirmResult } from 'vs/platform/dialogs/common/dialogs'
9090import { ILayoutService } from 'vs/platform/layout/browser/layoutService'
91+ import { BannerPart } from 'vs/workbench/browser/parts/banner/bannerPart'
92+ import { IBannerService } from 'vs/workbench/services/banner/browser/bannerService'
93+ import { ITitleService } from 'vs/workbench/services/title/common/titleService'
94+ import { TitlebarPart } from 'vs/workbench/browser/parts/titlebar/titlebarPart'
9195import { MonacoDelegateEditorGroupsService , MonacoEditorService , OpenEditor } from './tools/editor'
9296import getBulkEditServiceOverride from './bulkEdit'
9397import getLayoutServiceOverride , { LayoutService } from './layout'
@@ -569,6 +573,8 @@ registerServiceInitializePostParticipant(async (accessor) => {
569573
570574 // force service instantiation
571575 accessor . get ( IStatusbarService )
576+ accessor . get ( IBannerService )
577+ accessor . get ( ITitleService )
572578 paneCompositePartService . getPaneComposites ( ViewContainerLocation . Panel )
573579
574580 const layoutService = accessor . get ( ILayoutService ) as LayoutService
@@ -579,6 +585,8 @@ registerServiceInitializePostParticipant(async (accessor) => {
579585
580586 // Create Parts
581587 for ( const { id, role, classes, options } of [
588+ { id : Parts . TITLEBAR_PART , role : 'none' , classes : [ 'titlebar' ] } ,
589+ { id : Parts . BANNER_PART , role : 'banner' , classes : [ 'banner' ] } ,
582590 { id : Parts . ACTIVITYBAR_PART , role : 'none' , classes : [ 'activitybar' , 'left' ] } ,
583591 { id : Parts . SIDEBAR_PART , role : 'none' , classes : [ 'sidebar' , 'left' ] } ,
584592 { id : Parts . EDITOR_PART , role : 'main' , classes : [ 'editor' ] , options : { restorePreviousState : false } } ,
@@ -625,6 +633,8 @@ export default function getServiceOverride (openEditorFallback?: OpenEditor, _we
625633 [ ICodeEditorService . toString ( ) ] : new SyncDescriptor ( CodeEditorService , [ ] , true ) ,
626634 [ ITextEditorService . toString ( ) ] : new SyncDescriptor ( TextEditorService , [ ] , false ) ,
627635 [ IEditorGroupsService . toString ( ) ] : new SyncDescriptor ( MonacoEditorPart , [ ] , false ) ,
636+ [ ITitleService . toString ( ) ] : new SyncDescriptor ( TitlebarPart , [ ] , false ) ,
637+ [ IBannerService . toString ( ) ] : new SyncDescriptor ( BannerPart , [ ] , false ) ,
628638 [ IStatusbarService . toString ( ) ] : new SyncDescriptor ( StatusbarPart , [ ] , false ) ,
629639 [ IEditorDropService . toString ( ) ] : new SyncDescriptor ( EditorDropService , [ ] , true ) ,
630640 [ IEditorService . toString ( ) ] : new SyncDescriptor ( MonacoEditorService , [ openEditorFallback , isEditorPartVisible ] , false ) ,
0 commit comments