Skip to content

Commit a0ffd88

Browse files
authored
Create guidance on contextFilters error (#973)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval This PR introduces a change faced by a couple of customers regarding contextFilters on inline edits. The change introduces a quick workaround to unblock them. You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent 8a228ef commit a0ffd88

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/cody/troubleshooting.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ It indicates that our web application firewall provider, Cloudflare, has flagged
105105

106106
Consider disabling anonymizers, VPNs, or open proxies. If using a VPN is essential, you can try [1.1.1.1](https://one.one.one.one), which is recognized to be compatible with our services.
107107

108+
### Error with Cody `contextFilters` during chat or editing code
109+
110+
The `contextFilters` setting in Cody is used to control which files are included or excluded when Cody searches for relevant context while answering questions or providing code assistance. Sometimes, you can see the following error:
111+
112+
```
113+
Edit failed to run: file is ignored (due to cody.contextFilters Enterprise configuration setting)
114+
```
115+
116+
This error occurs when you're trying to work with a file that's been excluded by Cody's enterprise-level `contextFilters` configuration. At times, this can happen to files that also haven't been excluded. First, check with your organization's admin to understand which files are excluded.
117+
118+
If the error occurs with a file that's not been excluded, the workaround is to uninstall the Cody plugin, restart your IDE and then reinstall the latest version of the extension.
119+
120+
This should clear the error.
121+
108122
### VS Code Pro License Issues
109123

110124
If VS Code prompts you to upgrade to Pro despite already having a Pro license, this usually happens because you're logged into a free Cody/Sourcegraph account rather than your Pro account. To fix this:

0 commit comments

Comments
 (0)