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

Method isOpenFile

internal/project/snapshotfs.go:118–122  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

116}
117
118func (s *SnapshotFS) isOpenFile(fileName string) bool {
119 path := s.toPath(fileName)
120 _, ok := s.overlays[path]
121 return ok
122}
123
124func (s *SnapshotFS) isFile(path tspath.Path) bool {
125 if _, ok := s.diskFiles[path]; ok {

Callers 11

TestSnapshotFSFunction · 0.95
acquireConfigForFileMethod · 0.45
getSnapshotMethod · 0.45
warmAutoImportCacheMethod · 0.45
HandleAPIRequestMethod · 0.45
DidRequestFileMethod · 0.45

Calls 1

toPathMethod · 0.45

Tested by 1

TestSnapshotFSFunction · 0.76