MCPcopy Index your code
hub / github.com/bytebase/bytebase / checkInitialized

Method checkInitialized

backend/api/lsp/handler.go:180–187  ·  view source on GitHub ↗
(req *jsonrpc2.Request)

Source from the content-addressed store, hash-verified

178}
179
180func (h *Handler) checkInitialized(req *jsonrpc2.Request) error {
181 h.mu.Lock()
182 defer h.mu.Unlock()
183 if Method(req.Method) != LSPMethodInitialize && h.init == nil {
184 return errors.New("server must be initialized first")
185 }
186 return nil
187}
188
189func (h *Handler) checkReady() error {
190 h.mu.Lock()

Callers 1

handleMethod · 0.95

Calls 1

MethodTypeAlias · 0.85

Tested by

no test coverage detected