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

Function IsDynamicFileName

internal/tspath/path.go:49–51  ·  view source on GitHub ↗

IsDynamicFileName returns true if the file name represents a dynamic/virtual file that doesn't exist on disk (e.g., untitled files with paths like "^/untitled/...").

(fileName string)

Source from the content-addressed store, hash-verified

47// IsDynamicFileName returns true if the file name represents a dynamic/virtual file
48// that doesn't exist on disk (e.g., untitled files with paths like "^/untitled/...").
49func IsDynamicFileName(fileName string) bool {
50 return strings.HasPrefix(fileName, "^/")
51}
52
53// Determines whether a path starts with an absolute path component (i.e. `/`, `c:/`, `file://`, etc.).
54//

Callers 15

getAllImportCodeActionsFunction · 0.92
getFixInfosFunction · 0.92
getCompletionDataMethod · 0.92
FileNameToDocumentURIFunction · 0.92
didCloseFileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected