(sessionPath: string | null | undefined)
| 155 | } |
| 156 | |
| 157 | function markStale(sessionPath: string | null | undefined) { |
| 158 | const runtimeKey = getPersistedSessionPath(sessionPath ?? null) |
| 159 | if (!runtimeKey) { |
| 160 | return |
| 161 | } |
| 162 | |
| 163 | staleGenerations.set(runtimeKey, (staleGenerations.get(runtimeKey) ?? 0) + 1) |
| 164 | void reloadIfSafe(runtimeKey).catch(() => undefined) |
| 165 | } |
| 166 | |
| 167 | function markStaleForProject(projectPath?: string | undefined | null | undefined) { |
| 168 | if (projectPath !== null && projectPath !== undefined && projectPath.trim().length === 0) { |
nothing calls this directly
no test coverage detected