MCPcopy Create free account
hub / github.com/docker/docker-language-server / Version

Method Version

internal/pkg/document/manager.go:102–109  ·  view source on GitHub ↗
(ctx context.Context, u uri.URI)

Source from the content-addressed store, hash-verified

100}
101
102func (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//

Callers

nothing calls this directly

Calls 1

VersionMethod · 0.65

Tested by

no test coverage detected