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

Method set

backend/api/lsp/fs.go:87–92  ·  view source on GitHub ↗
(uri lsp.DocumentURI, content []byte)

Source from the content-addressed store, hash-verified

85}
86
87func (fs *MemFS) set(uri lsp.DocumentURI, content []byte) {
88 path := uriToMemFSPath(uri)
89 fs.mu.Lock()
90 defer fs.mu.Unlock()
91 fs.m[path] = content
92}
93
94func (fs *MemFS) del(uri lsp.DocumentURI) {
95 path := uriToMemFSPath(uri)

Callers 15

DidOpenMethod · 0.95
DidChangeMethod · 0.95
constructorMethod · 0.45
toggleFunction · 0.45
DatabaseResourceSelectorFunction · 0.45
MultiSearchableSelectFunction · 0.45
AttachResourcesPanelFunction · 0.45
RuleLevelFilterFunction · 0.45
TabsByEngineFunction · 0.45
ReviewCreationFunction · 0.45

Calls 1

uriToMemFSPathFunction · 0.85

Tested by 5

stubAnimationFramesFunction · 0.36
entryForFunction · 0.36
createRequestFunction · 0.36
createRequestFunction · 0.36
writeStubFunction · 0.36