VSCode needs Electron which is too big IMO. It's also a specialised code editor instead of a general text editor, with features like builtin terminal and traditional menus instead of ribbons.
I mean, Microsoft is already using WebView and web technologies in Windows at this point. I agree electron is inefficient, but it's not particularly egregious when compared to what they're already doing