GitHub Copilot already includes open files in the context.
Copilot can use entire repositories using Copilot enterprise and it's guaranteed none of the data is used for training purposes. https://github.blog/news-insights/product-news/github-copilo...
I honestly think the "oh no, enterprises are scared about where are code goes" is overblown. I mean, companies host tons of infrastructure on AWS, GCP, Azure, etc. And heck, why would a company trust GitHub (a subsidiary of Microsoft) Enterprise's guarantees and not trust Open AI's (basically a subsidiary of Microsoft at this point) guarantees?