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

Method toPath

internal/api/session.go:2902–2904  ·  view source on GitHub ↗

toPath converts a file name to a normalized path.

(fileName string)

Source from the content-addressed store, hash-verified

2900
2901// toPath converts a file name to a normalized path.
2902func (s *Session) toPath(fileName string) tspath.Path {
2903 return tspath.ToPath(fileName, s.projectSession.GetCurrentDirectory(), s.projectSession.FS().UseCaseSensitiveFileNames())
2904}
2905
2906// toFileChangeSummary converts API file changes to a project.FileChangeSummary.
2907func (s *Session) toFileChangeSummary(changes *APIFileChanges) project.FileChangeSummary {

Callers 7

handleUpdateSnapshotMethod · 0.95
handleParseConfigFileMethod · 0.95
getProjectMethod · 0.45
getProjectMethod · 0.45

Calls 4

ToPathFunction · 0.92
GetCurrentDirectoryMethod · 0.65
FSMethod · 0.65

Tested by 1