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

Method get

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

Source from the content-addressed store, hash-verified

99}
100
101func (fs *MemFS) get(uri lsp.DocumentURI) ([]byte, bool) {
102 path := uriToMemFSPath(uri)
103 fs.mu.Lock()
104 defer fs.mu.Unlock()
105 content, found := fs.m[path]
106 return content, found
107}
108
109func uriToMemFSPath(uri lsp.DocumentURI) string {
110 if IsURI(uri) {

Callers 15

DidChangeMethod · 0.95
qp.min.jsFile · 0.45
derefMethod · 0.45
chipLabelFunction · 0.45
DatabaseResourceSelectorFunction · 0.45
getOperatorListByFactorFunction · 0.45
ValueInputFunction · 0.45
IAMRemindDialogFunction · 0.45
RuleTable.test.tsxFile · 0.45
Panels.test.tsxFile · 0.45

Calls 1

uriToMemFSPathFunction · 0.85

Tested by 3

locationFunction · 0.36
entryForFunction · 0.36
readStubFunction · 0.36