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

Method Path

internal/lsp/lsproto/lsp.go:52–55  ·  view source on GitHub ↗
(useCaseSensitiveFileNames bool)

Source from the content-addressed store, hash-verified

50}
51
52func (uri DocumentUri) Path(useCaseSensitiveFileNames bool) tspath.Path {
53 fileName := uri.FileName()
54 return tspath.ToPath(fileName, "", useCaseSensitiveFileNames)
55}
56
57func fixWindowsURIPath(path string) string {
58 if rest, ok := strings.CutPrefix(path, "/"); ok {

Callers

nothing calls this directly

Calls 2

FileNameMethod · 0.95
ToPathFunction · 0.92

Tested by

no test coverage detected