You can prevent Copilot from accessing certain files.
Who can use this feature?Organizations with a Copilot Business or Copilot Enterprise plan.
About content exclusion for CopilotYou can use content exclusion to configure Copilot to ignore certain files. When you exclude content from Copilot:
Repository administrators, organization owners, and enterprise owners can configure content exclusion.
The Copilot Business and Copilot Enterprise plans provide the following level of support for content exclusion.
Tool Code completion support Copilot Chat support Visual Studio Visual Studio Code JetBrains IDEs Vim/Neovim Not applicable Xcode Eclipse Azure Data Studio Not applicable The GitHub website Not applicable GitHub Mobile Not applicableContent exclusions also apply to Copilot code review on the GitHub website.
Note
It's possible that Copilot may use semantic information from an excluded file if the information is provided by the IDE indirectly. Examples of such content include type information and hover-over definitions for symbols used in code, as well as general project properties such as build configuration information.
Currently, content exclusions do not apply to symbolic links (symlinks) and repositories located on remote filesystems.
Data sent to GitHubAfter you configure content exclusion, the client (for example, the Copilot extension for VS Code) sends the current repository URL to the GitHub server so that the server can return the correct policy to the client. These URLs are not logged anywhere.
Further readingRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4