(sessionPath: string | null | undefined, cwd: string)
| 1 | const sessionPathToCwd = new Map<string, string>() |
| 2 | |
| 3 | export function rememberSessionPath(sessionPath: string | null | undefined, cwd: string) { |
| 4 | if (sessionPath) { |
| 5 | sessionPathToCwd.set(sessionPath, cwd) |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | export function getMappedCwd(sessionPath: string) { |
| 10 | return sessionPathToCwd.get(sessionPath) ?? null |
no outgoing calls
no test coverage detected