MCPcopy Create free account
hub / github.com/microsoft/typescript-go / UpdateSnapshot

Method UpdateSnapshot

internal/project/session.go:1190–1192  ·  view source on GitHub ↗
(ctx context.Context, overlays map[tspath.Path]*Overlay, change SnapshotChange)

Source from the content-addressed store, hash-verified

1188}
1189
1190func (s *Session) UpdateSnapshot(ctx context.Context, overlays map[tspath.Path]*Overlay, change SnapshotChange) {
1191 s.updateSnapshot(ctx, overlays, change, false)
1192}
1193
1194// updateSnapshotRef is like UpdateSnapshot but returns the created snapshot
1195// with an extra reference for the caller. The ref is taken atomically with

Calls 1

updateSnapshotMethod · 0.95

Tested by

no test coverage detected