(req *jsonrpc2.Request)
| 178 | } |
| 179 | |
| 180 | func (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 | |
| 189 | func (h *Handler) checkReady() error { |
| 190 | h.mu.Lock() |