Parent .gitignore is ignored when outside of "files to include"
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.100.2
- OS Version: Windows 10
Steps to Reproduce:
- Have a project with a structure like below
- Use the Search feature
- Enter
/apps/app1in "files to include" - Notice how it search within files that ought to be ignored
Project structure
(root)
apps
app1
.build
someignoredfile.txt
somefile.txt
.gitignore
Above, in the .gitignore is specified to ignore .build.
So effectively, any .gitignore that lies "above" whatever you fill in at "files to include", is not taken into consideration. In reality though, a parent .gitignore should still apply, as it is still part of the project.
For context, this is especially troublesome in monorepos that have one root-level .gitignore, and you only need to search within one of the projects contained within that monorepo. But of course, it's not limited or exclusive to monorepos.
See https://github.com/microsoft/vscode/issues/249617
Closing in favor of https://github.com/microsoft/vscode/issues/249617