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

Method reset

backend/api/lsp/handler.go:255–265  ·  view source on GitHub ↗
(params *lsp.InitializeParams)

Source from the content-addressed store, hash-verified

253}
254
255func (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
267func (h *Handler) handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (any, error) {
268 defer func() {

Callers 7

handleMethod · 0.95
RuleSelectListWithFilterFunction · 0.45
RuleTableWithFilterFunction · 0.45
tab.test.tsFile · 0.45
CreateGroupSheetFunction · 0.45
LeaveGuardBlockerFunction · 0.45
rootGuardFunction · 0.45

Calls 2

NewMemFSFunction · 0.85
ClearMethod · 0.80

Tested by

no test coverage detected