GetContent retrieves a document's content
(uri string)
| 267 | |
| 268 | // GetContent retrieves a document's content |
| 269 | func (dm *DocumentManager) GetContent(uri string) (string, bool) { |
| 270 | dm.mu.RLock() |
| 271 | defer dm.mu.RUnlock() |
| 272 | doc, ok := dm.documents[uri] |
| 273 | if !ok { |
| 274 | return "", false |
| 275 | } |
| 276 | return doc.Content, true |
| 277 | } |
| 278 | |
| 279 | // splitLines splits content into lines, preserving line endings |
| 280 | func splitLines(content string) []string { |
no outgoing calls