MCPcopy Create free account
hub / github.com/bytebase/bytebase / del

Method del

backend/api/lsp/fs.go:94–99  ·  view source on GitHub ↗
(uri lsp.DocumentURI)

Source from the content-addressed store, hash-verified

92}
93
94func (fs *MemFS) del(uri lsp.DocumentURI) {
95 path := uriToMemFSPath(uri)
96 fs.mu.Lock()
97 defer fs.mu.Unlock()
98 delete(fs.m, path)
99}
100
101func (fs *MemFS) get(uri lsp.DocumentURI) ([]byte, bool) {
102 path := uriToMemFSPath(uri)

Callers 1

DidCloseMethod · 0.95

Calls 1

uriToMemFSPathFunction · 0.85

Tested by

no test coverage detected