This is the conclusion that most people don't ever reach. They assume that there is an altruistic element to things like open source within Microsoft (and other commercial organisations) and perhaps among the developers there is... giving back, helping out and all that.
But if Microsoft (or Google, FB, etc. etc) thought for one second that supporting, nurturing and building open source software and tools was affecting the bottom line negatively they'd drop it in a heartbeat: they answer to the shareholders and they only have one question - will this make more money?
In general it's always foolish to attribute altruistic intent to a corporation, and MS in particular given their history.
The average ice cream shop exists to sell me ice cream, they’re not on an ideological quest to improve the craft. And I can eat their ice cream just fine, because I like ice cream.
The bad news come when you reach the "Extinguish" phase. [1]
[1]: https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguis...
Microsoft sells Windows, but they are not content with just simply selling you an OS. There's plenty of privacy violating data collection and ads in the OS.
Windows 10 has tons of stuff that I don’t like. But the advancements in WSL and open source are a good thing.
By all means, apply pressure to Microsoft for things that they do wrong, and for bad decisions they make. But when they’re doing a good thing, maybe the default stance shouldn’t be to speculate about ill intent. Sometimes it’s nice to just enjoy the good thing.
That said, this is also a legitimate interest. But what they did with the hot reload lately... I am not sure it is a smart move.
What do you mean by this?
The core IDE is all open source (except some closed source telemetry).
The common example I see quoted is that the super-old, legacy, C# debugger is closed source, but as far as I know there is nothing stopping people writing an alternative debugger for C# in VS Code. Jetbrains did it for Rider.
The SSH remote connection stuff, the Pylance Python LSP (you are not allowed to use it - the binary - in any other editor but VS Code, not even the OSS Codium) and some other extensions are CSS.
"""Can I load Pylance in Code – OSS? Pylance is licensed for use in Microsoft products and services only, so can only be used on official Microsoft builds of Visual Studio Code and GitHub Codespaces."""
https://github.com/microsoft/pylance-release/blob/main/FAQ.m...
Is your argument that if Microsoft develop any programming tool and then allow it to be used via VS Code they must open source it?
Would you place that same requirement on other extensions? (e.g. sonarcloud)
https://github.com/microsoft/pyright https://github.com/Microsoft/python-language-server
The only(?) one not by MS is Jedi: https://github.com/pappasam/jedi-language-server
Microsoft is also one of the biggest gaming companies in the world (via the xbox platform) and zero initiative on free software anything over there.
Microsoft doesn't care at all about free software, or software freedoms. It's just a means to an end.