About content exclusion for Copilot
You can use content exclusion to configure Copilot to ignore certain files. When you exclude content from Copilot:
- Inline suggestions will not be available in the affected files.
- The content in affected files will not inform inline suggestions in other files.
- The content in affected files will not inform Copilot's responses.
- Affected files will not be reviewed in a Copilot code review.
Who can configure content exclusion
Repository administrators, organization owners, and enterprise owners can configure content exclusion.
- Администраторы репозитория могут исключить содержимое для собственных репозиториев. Это влияет на всех пользователей Copilot в организации, работающих в этих конкретных репозиториях.
- Владельцы организации могут исключить содержимое для пользователей, которым назначено место Copilot через свою организацию.
Availability of content exclusion
The Copilot Business and Copilot Enterprise plans provide the following level of support for content exclusion.
| Tool | Inline suggestions support | Chat and agent support |
|---|---|---|
| Visual Studio | ||
| Visual Studio Code | Chat: Edit: Agent: | |
| JetBrains IDEs | ||
| Vim/Neovim | Not applicable | |
| Xcode | ||
| Eclipse | ||
| Azure Data Studio | Not applicable | |
| The GitHub website | Not applicable | |
| GitHub Mobile | Not applicable | |
| GitHub Copilot app | Not applicable | |
| GitHub Copilot CLI | Not applicable |
Content exclusions also apply to Copilot code review on the GitHub website.
Примечание.
- Content exclusion is in Публичный предварительный просмотр on the GitHub website and in GitHub Mobile and is subject to change.
- Content exclusion is currently not supported in Edit and Agent modes of Copilot Chat in Visual Studio Code and other editors.
Limitations of content exclusion
Возможно, что Copilot может использовать семантические сведения из исключенного файла, если информация предоставляется интегрированной интегрированной среды разработки косвенно. Примеры такого содержимого включают сведения о типах и определения наведении указателя мыши для символов, используемых в коде, а также общие свойства проекта, такие как сведения о конфигурации сборки.
Currently, content exclusions do not apply to symbolic links (symlinks) and repositories located on remote filesystems.
Data sent to GitHub
After 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.