Replies: 2 comments
-
GitHub Copilot uses a local index to improve code completion and suggestions based on the context of your workspace. This local index is designed to help GitHub Copilot function faster and more efficiently without needing to send all your code over the network. However, it’s important to understand that Copilot is built with privacy in mind, and it does not send your entire codebase to their servers. For VSCode users on macOS, here's where you might want to look for GitHub Copilot-related data:
The local index may be stored in: VSCode settings or workspace data folders:
~/.vscode/extensions/github.copilot-1.275.0
Code context: Copilot uses the context (the portion of your code in the file you're editing) to generate suggestions. However, only small chunks of code are sent to the servers at any given time, not your entire repository. GitHub Copilot Privacy Statement: GitHub Copilot Privacy Disable Copilot for Sensitive Files: You can disable GitHub Copilot suggestions for specific file types or specific files (e.g., configuration files or proprietary code). To disable GitHub Copilot for certain file types, you can modify the settings in your VSCode settings.json file. Clear Cache: If you're concerned about local data storage, you can manually clear the cache or index by deleting any related files in the directories I mentioned above. However, be aware that this may affect Copilot's performance or the ability to generate suggestions based on previous context. Review GitHub Documentation: As you mentioned, the documentation at Workspace Context could provide more transparency, and it’s a good point to make for GitHub’s product team. If there are any gaps in the documentation, GitHub often takes feedback seriously. Hope this helps! Please check if it works |
Beta Was this translation helpful? Give feedback.
-
I found some helpful information regarding the location of the local index used by GitHub Copilot and related concerns:
Based on these sources, it seems that there is some level of transparency regarding how the local index is used, but the exact storage location on your Mac is not clearly documented. I recommend following these discussions and documentation pages for any updates or further details provided by GitHub. Additionally, you can reach out to GitHub Support for more specific information. Hope it helps. First check if this work |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
As per question. I am on a mac, I can't really find any documentation about where the local index is store.
I Tried looking inside :
but found nothing.
Would be nice to have some more transparency on this in the documentation at: https://code.visualstudio.com/docs/copilot/workspace-context#_local-index
That would provide a peace of mind for users who don't want their whole code base to be sent over to "god knows where".
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions