(resolvedPath: string, projectRoot: string)
| 2 | import * as path from "node:path"; |
| 3 | |
| 4 | function isWithinProjectRoot(resolvedPath: string, projectRoot: string): boolean { |
| 5 | return resolvedPath === projectRoot || resolvedPath.startsWith(projectRoot + path.sep); |
| 6 | } |
| 7 | |
| 8 | /** |
| 9 | * Canonicalize an incoming file path from the overlay into an absolute path |
no outgoing calls
no test coverage detected