@@ -33,7 +33,9 @@ import {
33
33
ApplicationShell as TheiaApplicationShell ,
34
34
ShellLayoutRestorer as TheiaShellLayoutRestorer ,
35
35
CommonFrontendContribution as TheiaCommonFrontendContribution ,
36
- KeybindingRegistry as TheiaKeybindingRegistry
36
+ KeybindingRegistry as TheiaKeybindingRegistry ,
37
+ TabBarRendererFactory ,
38
+ ContextMenuRenderer
37
39
} from '@theia/core/lib/browser' ;
38
40
import { MenuContribution } from '@theia/core/lib/common/menu' ;
39
41
import { ApplicationShell } from './theia/core/application-shell' ;
@@ -120,6 +122,8 @@ import { OutputServicePath, OutputService } from '../common/protocol/output-serv
120
122
import { NotificationCenter } from './notification-center' ;
121
123
import { NotificationServicePath , NotificationServiceServer } from '../common/protocol' ;
122
124
import { About } from './contributions/about' ;
125
+ import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service' ;
126
+ import { TabBarRenderer } from './theia/core/tab-bars' ;
123
127
124
128
const ElementQueries = require ( 'css-element-queries/src/ElementQueries' ) ;
125
129
@@ -329,4 +333,12 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
329
333
330
334
bind ( NotificationCenter ) . toSelf ( ) . inSingletonScope ( ) ;
331
335
bind ( NotificationServiceServer ) . toDynamicValue ( context => WebSocketConnectionProvider . createProxy ( context . container , NotificationServicePath ) ) . inSingletonScope ( ) ;
336
+
337
+ // Enable the dirty indicator on uncloseable widgets.
338
+ rebind ( TabBarRendererFactory ) . toFactory ( context => ( ) => {
339
+ const contextMenuRenderer = context . container . get < ContextMenuRenderer > ( ContextMenuRenderer ) ;
340
+ const decoratorService = context . container . get < TabBarDecoratorService > ( TabBarDecoratorService ) ;
341
+ const iconThemeService = context . container . get < IconThemeService > ( IconThemeService ) ;
342
+ return new TabBarRenderer ( contextMenuRenderer , decoratorService , iconThemeService ) ;
343
+ } ) ;
332
344
} ) ;
0 commit comments