MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewDocumentManager

Function NewDocumentManager

pkg/lsp/documents.go:108–112  ·  view source on GitHub ↗

NewDocumentManager creates a new document manager. This constructor initializes a DocumentManager with an empty document map. The returned manager is ready to handle document lifecycle events from LSP clients. Returns: - *DocumentManager: A new document manager instance Thread Safety: The returne

()

Source from the content-addressed store, hash-verified

106// Typically, this is called once when creating the LSP server, not for each
107// document operation.
108func NewDocumentManager() *DocumentManager {
109 return &DocumentManager{
110 documents: make(map[string]*Document),
111 }
112}
113
114// Open adds a document to the manager.
115//

Callers 6

NewServerFunction · 0.85
TestDocumentManagerFunction · 0.85

Calls

no outgoing calls