(ctx context.Context, u uri.URI)
| 100 | } |
| 101 | |
| 102 | func (m *Manager) Version(ctx context.Context, u uri.URI) (int32, error) { |
| 103 | m.mu.Lock() |
| 104 | defer m.mu.Unlock() |
| 105 | if doc, found := m.docs[u]; found { |
| 106 | return doc.Version(), nil |
| 107 | } |
| 108 | return -1, errors.New("document not managed") |
| 109 | } |
| 110 | |
| 111 | // Read returns the contents of the file for the given URI. |
| 112 | // |