( registryPath: string, workspaceKey: string, options?: DaemonFileCleanupOptions, )
| 227 | } |
| 228 | |
| 229 | function removeRegistryAtPathIfOwned( |
| 230 | registryPath: string, |
| 231 | workspaceKey: string, |
| 232 | options?: DaemonFileCleanupOptions, |
| 233 | ): DaemonRegistryEntry | null { |
| 234 | const entry = readValidRegistryEntryAtPath(registryPath, workspaceKey); |
| 235 | if (!entry || !canRemoveRegistryEntry(entry, workspaceKey, options)) { |
| 236 | return null; |
| 237 | } |
| 238 | |
| 239 | try { |
| 240 | unlinkSync(registryPath); |
| 241 | return entry; |
| 242 | } catch { |
| 243 | return null; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | function listWorkspaceRegistryEntries(): DaemonRegistryEntry[] { |
| 248 | const entries: DaemonRegistryEntry[] = []; |
no test coverage detected