I think it's far more fair to say that developers have agreed to let them use their data (that they will use to reduce dev jobs) in exchange for a service that can almost entirely be easily migrated elsewhere.
If you think MS using github code to train AI is bad, let's be pragmatic about where we're putting the blame or there's no shot we can course correct.
I personally am not looking forward to the pain of losing my job, but I would never presume my job is more important than progress. My job wouldn't even exist if we halted progress to save the jobs.