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

Method DidOpen

backend/api/lsp/fs.go:26–28  ·  view source on GitHub ↗

DidOpen notifies the file system that a file was opened.

(params *lsp.DidOpenTextDocumentParams)

Source from the content-addressed store, hash-verified

24
25// DidOpen notifies the file system that a file was opened.
26func (fs *MemFS) DidOpen(params *lsp.DidOpenTextDocumentParams) {
27 fs.set(params.TextDocument.URI, []byte(params.TextDocument.Text))
28}
29
30// DidChange notifies the file system that a file was changed.
31func (fs *MemFS) DidChange(params *lsp.DidChangeTextDocumentParams) error {

Callers 1

Calls 1

setMethod · 0.95

Tested by

no test coverage detected