( entry: DaemonRegistryEntry, workspaceKey: string, options?: DaemonFileCleanupOptions, )
| 191 | } |
| 192 | |
| 193 | function entryMatchesCleanupTarget( |
| 194 | entry: DaemonRegistryEntry, |
| 195 | workspaceKey: string, |
| 196 | options?: DaemonFileCleanupOptions, |
| 197 | ): boolean { |
| 198 | if (entry.workspaceKey !== workspaceKey) { |
| 199 | return false; |
| 200 | } |
| 201 | if (options?.socketPath && entry.socketPath !== options.socketPath) { |
| 202 | return false; |
| 203 | } |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | function canRemoveRegistryEntry( |
| 208 | entry: DaemonRegistryEntry, |
no outgoing calls
no test coverage detected