@@ -21,6 +21,11 @@ import {
21
21
import { IDEUpdaterImpl } from './ide-updater/ide-updater-impl' ;
22
22
import { TheiaElectronWindow } from './theia/theia-electron-window' ;
23
23
import { TheiaElectronWindow as DefaultTheiaElectronWindow } from '@theia/core/lib/electron-main/theia-electron-window' ;
24
+ import { SurveyNotificationServiceImpl } from '../node/survey-service-impl' ;
25
+ import {
26
+ SurveyNotificationService ,
27
+ SurveyNotificationServicePath ,
28
+ } from '../common/protocol/survey-service' ;
24
29
25
30
export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
26
31
bind ( ElectronMainApplication ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -61,4 +66,21 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
61
66
62
67
bind ( TheiaElectronWindow ) . toSelf ( ) ;
63
68
rebind ( DefaultTheiaElectronWindow ) . toService ( TheiaElectronWindow ) ;
69
+
70
+ // Survey notification bindings
71
+ bind ( SurveyNotificationServiceImpl ) . toSelf ( ) . inSingletonScope ( ) ;
72
+ bind ( SurveyNotificationService ) . toService ( SurveyNotificationServiceImpl ) ;
73
+ bind ( ElectronMainApplicationContribution ) . toService (
74
+ SurveyNotificationService
75
+ ) ;
76
+ bind ( ElectronConnectionHandler )
77
+ . toDynamicValue (
78
+ ( context ) =>
79
+ new JsonRpcConnectionHandler ( SurveyNotificationServicePath , ( ) =>
80
+ context . container . get < SurveyNotificationService > (
81
+ SurveyNotificationService
82
+ )
83
+ )
84
+ )
85
+ . inSingletonScope ( ) ;
64
86
} ) ;
0 commit comments