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

Method GetFS

backend/api/lsp/fs_handler.go:15–19  ·  view source on GitHub ↗

GetFS returns the file system.

()

Source from the content-addressed store, hash-verified

13
14// GetFS returns the file system.
15func (h *Handler) GetFS() *MemFS {
16 h.mu.Lock()
17 defer h.mu.Unlock()
18 return h.fs
19}
20
21func (h *Handler) readFile(_ context.Context, uri lsp.DocumentURI) ([]byte, error) {
22 if !IsURI(uri) {

Callers 3

handleMethod · 0.95
readFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected