(params *lsp.InitializeParams)
| 253 | } |
| 254 | |
| 255 | func (h *Handler) reset(params *lsp.InitializeParams) error { |
| 256 | h.mu.Lock() |
| 257 | defer h.mu.Unlock() |
| 258 | h.init = params |
| 259 | h.fs = NewMemFS() |
| 260 | // Clear any pending diagnostics on reset |
| 261 | if h.diagnosticsDebouncer != nil { |
| 262 | h.diagnosticsDebouncer.Clear() |
| 263 | } |
| 264 | return nil |
| 265 | } |
| 266 | |
| 267 | func (h *Handler) handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (any, error) { |
| 268 | defer func() { |
no test coverage detected