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

Method Read

internal/pkg/document/manager.go:115–117  ·  view source on GitHub ↗

Read returns the contents of the file for the given URI. If no file exists at the path or the URI is of an invalid type, an error is returned.

(ctx context.Context, u uri.URI)

Source from the content-addressed store, hash-verified

113// If no file exists at the path or the URI is of an invalid type, an error is
114// returned.
115func (m *Manager) Read(ctx context.Context, u uri.URI) (doc Document, err error) {
116 return m.tryReading(ctx, u, true)
117}
118
119// Read returns the contents of the file for the given URI.
120//

Callers 15

TestGetInstructionFunction · 0.45
TestGetDecoderFunction · 0.45
TextDocumentRenameMethod · 0.45
TextDocumentHoverMethod · 0.45
TextDocumentCodeLensMethod · 0.45

Calls 1

tryReadingMethod · 0.95

Tested by 2

TestGetInstructionFunction · 0.36
TestGetDecoderFunction · 0.36