Microsoft deserves all of the mistrust they’ve earned. They worked hard for it. More so today, for privacy concerns. Even if not the code itself, but long term conflict of interest etc. — they’ve been historically unpredictable and offensive to their customers (today more than ever with Windows 10), so people should worry investing time on this platform. I already closed my account.
Regardless, self hosting, or a federated solution, should be a better exit route.
More so for developers with smaller projects, or with few collaborators or none. There was never really a good reason to lock oneself into Github to begin with.