We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9e264 commit 8031ae1Copy full SHA for 8031ae1
src/core/ignore/GitIgnoreController.ts
@@ -59,6 +59,16 @@ export class GitIgnoreController extends BaseIgnoreController {
59
}
60
61
62
+ // Also discover arbitrary nested .gitignore files across the workspace
63
+ await this.findGitignoreFilesRecursively(this.cwd)
64
+
65
+ // Load any files discovered by recursion that weren't loaded yet
66
+ for (const p of this.gitignoreFiles) {
67
+ if (!this.gitignoreContents.has(p)) {
68
+ await this.loadGitignoreFile(p)
69
+ }
70
71
72
// Always ignore .gitignore files themselves
73
this.ignoreInstance.add(".gitignore")
74
} catch (error) {
0 commit comments