mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
invoke recursive discovery and loading newly found files before finalizing patterns
This commit is contained in:
parent
1a9e2648dd
commit
8031ae1877
1 changed files with 10 additions and 0 deletions
|
|
@ -59,6 +59,16 @@ export class GitIgnoreController extends BaseIgnoreController {
|
|||
}
|
||||
}
|
||||
|
||||
// Also discover arbitrary nested .gitignore files across the workspace
|
||||
await this.findGitignoreFilesRecursively(this.cwd)
|
||||
|
||||
// Load any files discovered by recursion that weren't loaded yet
|
||||
for (const p of this.gitignoreFiles) {
|
||||
if (!this.gitignoreContents.has(p)) {
|
||||
await this.loadGitignoreFile(p)
|
||||
}
|
||||
}
|
||||
|
||||
// Always ignore .gitignore files themselves
|
||||
this.ignoreInstance.add(".gitignore")
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue