(absolutePath: string)
| 209 | } |
| 210 | |
| 211 | private isWithinWorkspaceRoots(absolutePath: string): boolean { |
| 212 | if (!this.normalizedWorkspaceRoots?.length) return true |
| 213 | return this.normalizedWorkspaceRoots.some((workspaceRoot) => { |
| 214 | const rel = relative(workspaceRoot, absolutePath) |
| 215 | return rel === '' || (!rel.startsWith('..') && !isAbsolute(rel)) |
| 216 | }) |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Canonicalize a path for workspace-root containment checks. Resolves |
no outgoing calls
no test coverage detected