You can now exclude non-Git files from being accessed by Copilot, in addition to Git files. This update gives you greater control over the content Copilot can access, ensuring that it will not access files that an organization owner has marked for exclusion, whether the files are part of a Git repository or not.
How to exclude non-Git files
The wildcard scope has expanded to include both files within and outside Git repositories, supporting the exclusion of non-Git files.
Previously
Wildcard rules applied exclusively to files within the Git repository. For example:
"*":
- /test1 # => Blocks from the root of all git repositories: `/test1`
Now
Wildcard rules apply to files within the Git repository and the filesystem root. For example:
"*":
- /test1 # => Blocks from the root of all git repositories AND the filesystem root: `/test1`, `/test1`
Note: These changes to our Content Exclusion beta apply to the latest versions of both the VS Code and JetBrains Copilot extensions, covering the code completions and chat features in each.