At its core, VS Code is built on an open source project called Code OSS, published under the permissive MIT license.
Gitea puts you in charge of your system, allowing you to build trust in your setup and customize it to meet your exact needs.