More likely they're developing Code to compete with Sublime Text and the like. They don't have a product in that market and Microsoft's strategy is what it's always been: gaining marketshare.
Microsoft's success is [now] defined by developers active on MS technology. It underlies the open-sourcing of technologies long held proprietary, as well as the responsiveness to developer feedback.
Long term, I suspect the theory is if MS has a majority stake in the developer market, it can start defining the technology the world runs on (again). Its more of a give-take relationship though, with MS devoting resources to the resources developers actually use.
BTW it may sound like I'm being harsh on Microsoft but actually I think their strategy is brilliant. It legitimizes Open Source in every single way and shows the world that you can make money off of it - lots of money.
Open Source developers should be rejoicing now that they have been vindicated after so many years of not being taken seriously and even being called "Communists".
Make no mistake. Microsoft is not developing Visual Studio code out of the goodness of their hearts. This is a marketing strategy to get people to move to Azure.