- Copilot Chat Extension Version: 0.30.2025080503
- VS Code Version: 1.103.0-insider (Universal)
- OS Version: Darwin arm64 24.6.0
- Feature (e.g. agent/edit/ask mode): agent
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude Sonnet 4
- Logs:
Steps to Reproduce:
- Add a folder to your
.gitignore.
- Ask GitHub Copilot to search for or update files in this ignored folder.
Expected
GitHub Copilot returns searched results from these files.
Actual
GitHub Copilot is returned no information for any files that are excluded from the workspace or in a .gitignore.
Details
I have a folder .copilot-tracking that is in our .gitignore, because it's a dumping ground for intermediate files for GitHub Copilot to use and reference. However, because this folder is git ignored, the file_search and grep_search tools exclude anything in this folder from being searched...
A possible feature request, would it make more sense to have a setting for this?
Such as one where I can list out which folders to exclude from file_search, grep_search, semantic_search, etc... Instead of only relying on workspace excluded files/folders and .gitignore?
As another example, my codebase has a docs folder that I WANT to be excluded from semantic_search. Which, right now, I'm unable to do this because I would need to add to the .gitignore or exclude it from the workspace...
Feel free to reach out to me for more details.
Steps to Reproduce:
.gitignore.Expected
GitHub Copilot returns searched results from these files.
Actual
GitHub Copilot is returned no information for any files that are excluded from the workspace or in a
.gitignore.Details
I have a folder
.copilot-trackingthat is in our.gitignore, because it's a dumping ground for intermediate files for GitHub Copilot to use and reference. However, because this folder is git ignored, thefile_searchandgrep_searchtools exclude anything in this folder from being searched...A possible feature request, would it make more sense to have a setting for this?
Such as one where I can list out which folders to exclude from
file_search,grep_search,semantic_search, etc... Instead of only relying on workspace excluded files/folders and .gitignore?As another example, my codebase has a docs folder that I WANT to be excluded from
semantic_search. Which, right now, I'm unable to do this because I would need to add to the .gitignore or exclude it from the workspace...Feel free to reach out to me for more details.