Copilot sends chunks of your code to the server for every suggestion (whether or not you accept it). That's the only way it could possibly work, since the model is running on a remote server.
https://thakkarparth007.github.io/copilot-explorer/posts/cop...