When you use copilot integrated in the editor, does microsoft collect all source code data on your project or only context used to perform the completions?

Concern over this is the #1 reason I have not yet tried to use Copilot. For my hobby projects I don't care enough to pay for it. And if it's phoning home proprietary code, I can't allow that to happen.

Eh, as long as my employers don't care (they don't), I don't care. I have no illusions that my code/our code will give Microsoft any valuable training data it couldn't trivially get elsewhere.

Mine does, and therein lies my issue.

IMO Copilot for Business has a very reasonable data collection policy. They discard any code snippets once the suggestion is returned.

https://github.com/features/copilot