(basePath: string)
| 445 | ): string | null { |
| 446 | const extensions = EXTENSION_RESOLUTION[language] || []; |
| 447 | const tryWithExt = (basePath: string): string | null => { |
| 448 | for (const ext of extensions) { |
| 449 | const candidate = basePath + ext; |
| 450 | if (context.fileExists(candidate)) return candidate; |
| 451 | } |
| 452 | if (context.fileExists(basePath)) return basePath; |
| 453 | return null; |
| 454 | }; |
| 455 | |
| 456 | // 1. Project tsconfig/jsconfig paths. |
| 457 | const aliasMap = context.getProjectAliases?.(); |
no test coverage detected