Just copy the same thing as heroku has the github connectivity and git system to pull and push to the repository
Yeah I know you all will say it is not that easy as i say, but if they come up with this perfectly no one gonna complaint about the git or github.
Also people like to work offline and push the updates to the repository when they are offline.
You all might say visual code editor is there for your help. But what if people uses other code editors such as sublime or vim. If you give us the feature of using git systems(push and pull with proper security like heroku has identity secured using heroku-cli) people could work in any code editor they want meaning they will have freedom of choosing a code editor not sticking on to visual code editor
And I dont think it wouldn’t be that hard to implement git push and pull system than building a extension to visual code editor