MCPcopy Create free account
hub / github.com/docker/docker-language-server / registerCapability

Method registerCapability

internal/pkg/server/server.go:325–334  ·  view source on GitHub ↗
(registrations []protocol.Registration)

Source from the content-addressed store, hash-verified

323}
324
325func (s *Server) registerCapability(registrations []protocol.Registration) {
326 go func() {
327 defer s.handlePanic("registerCapability")
328
329 time.Sleep(registerCapabilityDelay)
330 s.client.RegisterCapability(context.Background(), protocol.RegistrationParams{
331 Registrations: registrations,
332 })
333 }()
334}
335
336func (s *Server) Enqueue(event string, properties map[string]any) {
337 for property, value := range s.sessionTelemetryProperties {

Callers 2

Calls 2

handlePanicMethod · 0.95
RegisterCapabilityMethod · 0.80

Tested by

no test coverage detected