VS Code was created to do something with the Monaco editor developed in typescript for their cloud offering. Same for CoreCLR, the slow and memory hungry runtime of Xamarin wasn't a treat to MS, .Net was approaching irrelevancy without a Linux presence in cloud offerings.