(service: ServiceType, fileName: string)
| 1226 | } |
| 1227 | |
| 1228 | function canServiceHandleFile(service: ServiceType, fileName: string): boolean { |
| 1229 | if (service === ServiceType.ZEROX0 && !Native) { |
| 1230 | return false; |
| 1231 | } |
| 1232 | |
| 1233 | if (isExeFileName(fileName) && EXE_BLOCKED_SERVICES.has(service)) { |
| 1234 | return false; |
| 1235 | } |
| 1236 | |
| 1237 | return true; |
| 1238 | } |
| 1239 | |
| 1240 | function normalizePrimaryService(primary: ServiceType, fileName: string): ServiceType { |
| 1241 | if (canServiceHandleFile(primary, fileName)) { |
no test coverage detected