Our own dirs are always ignored, regardless of .gitignore.
(rel: string)
| 636 | |
| 637 | /** Our own dirs are always ignored, regardless of .gitignore. */ |
| 638 | private isAlwaysIgnored(rel: string): boolean { |
| 639 | // First path segment. Ignore any CodeGraph data dir — the active one AND a |
| 640 | // sibling like `.codegraph-win` a second environment (Windows/WSL) created |
| 641 | // in the same tree, so neither side watches the other's index (#636). |
| 642 | const top = rel.split('/')[0] ?? rel; |
| 643 | return ( |
| 644 | isCodeGraphDataDir(top) || |
| 645 | rel === '.git' || rel.startsWith('.git/') |
| 646 | ); |
| 647 | } |
| 648 | |
| 649 | /** |
| 650 | * True for any directory that should NOT be watched (used while building the |
no test coverage detected