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