(basePath: string)
| 271 | ): string | null { |
| 272 | const extensions = EXTENSION_RESOLUTION[language] || []; |
| 273 | const tryWithExt = (basePath: string): string | null => { |
| 274 | for (const ext of extensions) { |
| 275 | const candidate = basePath + ext; |
| 276 | if (context.fileExists(candidate)) return candidate; |
| 277 | } |
| 278 | if (context.fileExists(basePath)) return basePath; |
| 279 | return null; |
| 280 | }; |
| 281 | |
| 282 | // 1. Project tsconfig/jsconfig paths. |
| 283 | const aliasMap = context.getProjectAliases?.(); |
no test coverage detected