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

Method GetProjectsContainingFile

internal/project/snapshot.go:86–91  ·  view source on GitHub ↗
(uri lsproto.DocumentUri)

Source from the content-addressed store, hash-verified

84}
85
86func (s *Snapshot) GetProjectsContainingFile(uri lsproto.DocumentUri) []ls.Project {
87 fileName := uri.FileName()
88 path := s.toPath(fileName)
89 // TODO!! sheetal may be change this to handle symlinks!!
90 return s.ProjectCollection.GetProjectsContainingFile(path)
91}
92
93func (s *Snapshot) GetFile(fileName string) FileHandle {
94 return s.fs.GetFile(fileName)

Callers 3

TestCustomConfigFileNameFunction · 0.45
GetProjectsForFileMethod · 0.45

Calls 2

FileNameMethod · 0.65
toPathMethod · 0.45

Tested by 1

TestCustomConfigFileNameFunction · 0.36