@@ -19,12 +19,14 @@ import { DefaultWorkspaceServerExt } from './default-workspace-server-ext';
19
19
import { WorkspaceServer } from '@theia/workspace/lib/common' ;
20
20
import { SketchesServiceImpl } from './sketches-service-impl' ;
21
21
import { SketchesService , SketchesServicePath } from '../common/protocol/sketches-service' ;
22
+ import { ConfigService , ConfigServicePath } from '../common/protocol/config-service' ;
22
23
import { MonitorServiceImpl } from './monitor/monitor-service-impl' ;
23
24
import { MonitorService , MonitorServicePath , MonitorServiceClient } from '../common/protocol/monitor-service' ;
24
25
import { MonitorClientProvider } from './monitor/monitor-client-provider' ;
25
26
import { ArduinoCli } from './arduino-cli' ;
26
27
import { ArduinoCliContribution } from './arduino-cli-contribution' ;
27
28
import { CliContribution } from '@theia/core/lib/node' ;
29
+ import { ConfigServiceImpl } from './config-service-impl' ;
28
30
29
31
export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
30
32
// Theia backend CLI contribution.
@@ -53,6 +55,15 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
53
55
bindBackendService ( SketchesServicePath , SketchesService ) ;
54
56
} ) ;
55
57
bind ( ConnectionContainerModule ) . toConstantValue ( sketchesServiceConnectionModule ) ;
58
+
59
+ bind ( ConfigServiceImpl ) . toSelf ( ) . inSingletonScope ( ) ;
60
+ bind ( ConfigService ) . toService ( ConfigServiceImpl ) ;
61
+
62
+ // Config service
63
+ const configServiceConnectionModule = ConnectionContainerModule . create ( ( { bind, bindBackendService } ) => {
64
+ bindBackendService ( ConfigServicePath , ConfigService ) ;
65
+ } ) ;
66
+ bind ( ConnectionContainerModule ) . toConstantValue ( configServiceConnectionModule ) ;
56
67
57
68
// Boards service
58
69
const boardsServiceConnectionModule = ConnectionContainerModule . create ( ( { bind, bindBackendService } ) => {
0 commit comments