Commit dbcb52c
committed
fix: convert recursive directory scanning to iterative approach to prevent stack overflow
- Replace recursive scanDirectory function with iterative implementation using a queue
- Prevents "Maximum call stack size exceeded" error when indexing large codebases (200k+ blocks)
- Maintains all existing functionality and directory filtering logic
- All existing tests pass without modification
Fixes #75881 parent 2e59347 commit dbcb52c
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
405 | 418 | | |
406 | 419 | | |
407 | 420 | | |
| |||
461 | 474 | | |
462 | 475 | | |
463 | 476 | | |
464 | | - | |
| 477 | + | |
| 478 | + | |
465 | 479 | | |
466 | 480 | | |
467 | 481 | | |
| |||
471 | 485 | | |
472 | 486 | | |
473 | 487 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | 488 | | |
478 | 489 | | |
479 | 490 | | |
| |||
0 commit comments