()
| 243 | }) |
| 244 | |
| 245 | export async function initMagicDocs(): Promise<void> { |
| 246 | if (isInternalBuild()) { |
| 247 | // Register listener to detect magic docs when files are read |
| 248 | registerFileReadListener((filePath: string, content: string) => { |
| 249 | const result = detectMagicDocHeader(content) |
| 250 | if (result) { |
| 251 | registerMagicDoc(filePath) |
| 252 | } |
| 253 | }) |
| 254 | |
| 255 | registerPostSamplingHook(updateMagicDocs) |
| 256 | } |
| 257 | } |
no test coverage detected