Our own dirs are always ignored, regardless of .gitignore.
(rel: string)
| 565 | |
| 566 | /** Our own dirs are always ignored, regardless of .gitignore. */ |
| 567 | private isAlwaysIgnored(rel: string): boolean { |
| 568 | // First path segment. Ignore any CodeGraph data dir — the active one AND a |
| 569 | // sibling like `.codegraph-win` a second environment (Windows/WSL) created |
| 570 | // in the same tree, so neither side watches the other's index (#636). |
| 571 | const top = rel.split('/')[0] ?? rel; |
| 572 | return ( |
| 573 | isCodeGraphDataDir(top) || |
| 574 | rel === '.git' || rel.startsWith('.git/') |
| 575 | ); |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * True for any directory that should NOT be watched (used while building the |
no test coverage detected