Commit 8da0f91
fix: file tree drops files when directory-like filePaths exist (monorepo bug)
SERVICE/MODULE nodes with directory-like filePaths (e.g. "packages/api")
caused the tree builder to create those path segments as type=FILE. When
actual source files under that path (e.g. "packages/api/src/index.ts")
were processed, their children were silently dropped because the parent
was a FILE node rendered with empty children.
Fix: upgrade FILE→DIRECTORY when a path segment is later used as an
intermediate directory. Verified on contoso-real-estate monorepo:
before 61 files visible, after 282 files visible (231 were silently lost).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 91803c4 commit 8da0f91
2 files changed
Lines changed: 49 additions & 1 deletion
File tree
- src
- main/java/io/github/randomcodespace/iq/query
- test/java/io/github/randomcodespace/iq/query
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| |||
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
442 | | - | |
| 448 | + | |
443 | 449 | | |
444 | 450 | | |
445 | 451 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
764 | 806 | | |
765 | 807 | | |
766 | 808 | | |
| |||
0 commit comments