@@ -3,7 +3,7 @@ import { ContainerModule } from 'inversify';
3
3
import { WidgetFactory } from '@theia/core/lib/browser/widget-manager' ;
4
4
import { CommandContribution } from '@theia/core/lib/common/command' ;
5
5
import { bindViewContribution } from '@theia/core/lib/browser/shell/view-contribution' ;
6
- import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar' ;
6
+ import { TabBarToolbarContribution , TabBarToolbarFactory } from '@theia/core/lib/browser/shell/tab-bar-toolbar' ;
7
7
import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging/ws-connection-provider' ;
8
8
import { FrontendApplicationContribution , FrontendApplication as TheiaFrontendApplication } from '@theia/core/lib/browser/frontend-application'
9
9
import { LanguageGrammarDefinitionContribution } from '@theia/monaco/lib/browser/textmate' ;
@@ -39,7 +39,6 @@ import { MonacoStatusBarContribution } from './theia/monaco/monaco-status-bar-co
39
39
import {
40
40
ApplicationShell as TheiaApplicationShell ,
41
41
ShellLayoutRestorer as TheiaShellLayoutRestorer ,
42
- KeybindingContribution ,
43
42
CommonFrontendContribution as TheiaCommonFrontendContribution ,
44
43
KeybindingRegistry as TheiaKeybindingRegistry
45
44
} from '@theia/core/lib/browser' ;
@@ -113,6 +112,7 @@ import { KeybindingRegistry } from './theia/core/keybindings';
113
112
import { WorkspaceCommandContribution } from './theia/workspace/workspace-commands' ;
114
113
import { WorkspaceDeleteHandler as TheiaWorkspaceDeleteHandler } from '@theia/workspace/lib/browser/workspace-delete-handler' ;
115
114
import { WorkspaceDeleteHandler } from './theia/workspace/workspace-delete-handler' ;
115
+ import { TabBarToolbar } from './theia/core/tab-bar-toolbar' ;
116
116
117
117
const ElementQueries = require ( 'css-element-queries/src/ElementQueries' ) ;
118
118
@@ -132,7 +132,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
132
132
bind ( CommandContribution ) . toService ( ArduinoFrontendContribution ) ;
133
133
bind ( MenuContribution ) . toService ( ArduinoFrontendContribution ) ;
134
134
bind ( TabBarToolbarContribution ) . toService ( ArduinoFrontendContribution ) ;
135
- bind ( KeybindingContribution ) . toService ( ArduinoFrontendContribution ) ;
136
135
bind ( FrontendApplicationContribution ) . toService ( ArduinoFrontendContribution ) ;
137
136
bind ( ColorContribution ) . toService ( ArduinoFrontendContribution ) ;
138
137
@@ -292,6 +291,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
292
291
rebind ( TheiaKeybindingRegistry ) . to ( KeybindingRegistry ) . inSingletonScope ( ) ;
293
292
rebind ( TheiaWorkspaceCommandContribution ) . to ( WorkspaceCommandContribution ) . inSingletonScope ( ) ;
294
293
rebind ( TheiaWorkspaceDeleteHandler ) . to ( WorkspaceDeleteHandler ) . inSingletonScope ( ) ;
294
+ rebind ( TabBarToolbarFactory ) . toFactory ( ( { container : parentContainer } ) => ( ) => {
295
+ const container = parentContainer . createChild ( ) ;
296
+ container . bind ( TabBarToolbar ) . toSelf ( ) . inSingletonScope ( ) ;
297
+ return container . get ( TabBarToolbar ) ;
298
+ } ) ;
295
299
296
300
// Show a disconnected status bar, when the daemon is not available
297
301
bind ( ApplicationConnectionStatusContribution ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments