File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/server/src/server Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -133,16 +133,18 @@ export class Server extends Protocol<ServerContext> {
133133 }
134134
135135 this . setRequestHandler ( 'initialize' , request => this . _oninitialize ( request ) ) ;
136- this . setNotificationHandler ( 'notifications/initialized' , ( ) => {
137- this . startPeriodicPing ( ) ;
138- this . oninitialized ?.( ) ;
139- } ) ;
136+ this . setNotificationHandler ( 'notifications/initialized' , ( ) => this . _handleInitialized ( ) ) ;
140137
141138 if ( this . _capabilities . logging ) {
142139 this . _registerLoggingHandler ( ) ;
143140 }
144141 }
145142
143+ private _handleInitialized ( ) : void {
144+ this . startPeriodicPing ( ) ;
145+ this . oninitialized ?.( ) ;
146+ }
147+
146148 private _registerLoggingHandler ( ) : void {
147149 this . setRequestHandler ( 'logging/setLevel' , async ( request , ctx ) => {
148150 const transportSessionId : string | undefined =
You can’t perform that action at this time.
0 commit comments