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