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

Method write

internal/pkg/document/manager.go:179–185  ·  view source on GitHub ↗
(ctx context.Context, u uri.URI, identifier protocol.LanguageIdentifier, version int32, input []byte)

Source from the content-addressed store, hash-verified

177}
178
179func (m *Manager) write(ctx context.Context, u uri.URI, identifier protocol.LanguageIdentifier, version int32, input []byte) (bool, error) {
180 changed, err := m.parse(ctx, u, identifier, version, input)
181 if err != nil {
182 return false, fmt.Errorf("could not parse file %q: %v", u, err)
183 }
184 return changed, err
185}
186
187func (m *Manager) Overwrite(ctx context.Context, u uri.URI, version int32, input []byte) (bool, error) {
188 m.mu.Lock()

Callers 2

WriteMethod · 0.95
OverwriteMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected