Our own dirs are always ignored, regardless of .gitignore.
(rel: string)
| 683 | |
| 684 | /** Our own dirs are always ignored, regardless of .gitignore. */ |
| 685 | private isAlwaysIgnored(rel: string): boolean { |
| 686 | // First path segment. Ignore any CodeGraph data dir — the active one AND a |
| 687 | // sibling like `.codegraph-win` a second environment (Windows/WSL) created |
| 688 | // in the same tree, so neither side watches the other's index (#636). |
| 689 | const top = rel.split('/')[0] ?? rel; |
| 690 | return ( |
| 691 | isCodeGraphDataDir(top) || |
| 692 | rel === '.git' || rel.startsWith('.git/') |
| 693 | ); |
| 694 | } |
| 695 | |
| 696 | /** |
| 697 | * True for any directory that should NOT be watched (used while building the |
no test coverage detected