File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ func (s *Server) registerDefaultHandlers() {
193193 if s .GetHandler ("initialize" ) == nil {
194194 s .RegisterHandler ("initialize" , s .handleInitialize )
195195 }
196- if s .GetNotificationHandler ("initialized" ) == nil {
197- s .RegisterNotificationHandler ("initialized" , s .handleInitialized )
196+ if s .GetNotificationHandler ("notifications/ initialized" ) == nil {
197+ s .RegisterNotificationHandler ("notifications/ initialized" , s .handleInitialized )
198198 }
199199 if s .GetHandler ("tools/list" ) == nil {
200200 s .RegisterHandler ("tools/list" , s .handleToolsList )
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ func TestServerStart(t *testing.T) {
142142 t .Error ("Initialize handler not registered" )
143143 }
144144
145- if _ , exists := server .notifications ["initialized" ]; ! exists {
145+ if _ , exists := server .notifications ["notifications/ initialized" ]; ! exists {
146146 t .Error ("Initialized notification handler not registered" )
147147 }
148148}
You can’t perform that action at this time.
0 commit comments