@@ -4,7 +4,7 @@ import { join } from 'path';
4
4
import { ContainerModule } from 'inversify' ;
5
5
import { ArduinoDaemonImpl } from './arduino-daemon-impl' ;
6
6
import { ILogger } from '@theia/core/lib/common/logger' ;
7
- import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application' ;
7
+ import { BackendApplicationContribution , BackendApplication as TheiaBackendApplication } from '@theia/core/lib/node/backend-application' ;
8
8
import { LibraryService , LibraryServicePath } from '../common/protocol/library-service' ;
9
9
import { BoardsService , BoardsServicePath } from '../common/protocol/boards-service' ;
10
10
import { LibraryServiceImpl } from './library-service-server-impl' ;
@@ -38,8 +38,12 @@ import { ExecutableServiceImpl } from './executable-service-impl';
38
38
import { OutputServicePath , OutputService } from '../common/protocol/output-service' ;
39
39
import { NotificationServiceServerImpl } from './notification-service-server' ;
40
40
import { NotificationServiceServer , NotificationServiceClient , NotificationServicePath } from '../common/protocol' ;
41
+ import { BackendApplication } from './theia/core/backend-application' ;
41
42
42
43
export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
44
+ bind ( BackendApplication ) . toSelf ( ) . inSingletonScope ( ) ;
45
+ rebind ( TheiaBackendApplication ) . toService ( BackendApplication ) ;
46
+
43
47
// Shared config service
44
48
bind ( ConfigFileValidator ) . toSelf ( ) . inSingletonScope ( ) ;
45
49
bind ( ConfigServiceImpl ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments