@@ -111,7 +111,7 @@ export class ServerApp implements IServerApp {
111111
112112 public rootFS : RootFS ;
113113
114- private disposeCollection = new DisposableCollection ( ) ;
114+ private _disposables = new DisposableCollection ( ) ;
115115
116116 constructor (
117117 opts : IServerAppOpts & {
@@ -149,7 +149,7 @@ export class ServerApp implements IServerApp {
149149 } ;
150150 window . addEventListener ( 'unload' , handleUnload ) ;
151151
152- this . disposeCollection . push ( {
152+ this . _disposables . push ( {
153153 dispose : ( ) => {
154154 window . removeEventListener ( 'unload' , handleUnload ) ;
155155 } ,
@@ -191,7 +191,7 @@ export class ServerApp implements IServerApp {
191191 try {
192192 const runtimeConfig : RuntimeConfig = this . injector . get ( RuntimeConfig ) ;
193193 this . rootFS = await initializeRootFileSystem ( ) ;
194- this . disposeCollection . push (
194+ this . _disposables . push (
195195 await initializeHomeFileSystem ( this . rootFS , runtimeConfig . scenario ) ,
196196 ) ;
197197
@@ -223,8 +223,8 @@ export class ServerApp implements IServerApp {
223223 async start ( ) {
224224 await this . launch ( ) ;
225225 await this . initializeContribution ( ) ;
226- const commonChannelPathHandler = this . injector . get ( CommonChannelPathHandler ) ;
227- const handler = new CodeblitzCommonChannelHandler ( 'codeblitz-server' , commonChannelPathHandler ) ;
226+ const pathHandler = this . injector . get ( CommonChannelPathHandler ) ;
227+ const handler = new CodeblitzCommonChannelHandler ( 'codeblitz-server' , pathHandler ) ;
228228
229229 const channel = this . injector . get ( InMemoryMessageChannel ) as InMemoryMessageChannel ;
230230 handler . receiveConnection ( new CodeBlitzConnection ( channel . port2 ) ) ;
@@ -236,11 +236,11 @@ export class ServerApp implements IServerApp {
236236 dispose : ( ) => { } ,
237237 } ;
238238
239- commonChannelPathHandler . register ( RPCServiceChannelPath , channelHandler ) ;
239+ pathHandler . register ( RPCServiceChannelPath , channelHandler ) ;
240240
241- this . disposeCollection . push ( {
241+ this . _disposables . push ( {
242242 dispose : ( ) => {
243- commonChannelPathHandler . removeHandler ( RPCServiceChannelPath , channelHandler ) ;
243+ pathHandler . removeHandler ( RPCServiceChannelPath , channelHandler ) ;
244244 } ,
245245 } ) ;
246246
@@ -252,7 +252,7 @@ export class ServerApp implements IServerApp {
252252 }
253253
254254 dispose ( ) {
255- this . disposeCollection . dispose ( ) ;
255+ this . _disposables . dispose ( ) ;
256256 }
257257}
258258
0 commit comments