I'm curious as to what the IDE source code looks like

Arduino IDE 2.x is based on the Eclipse Theia IDE framework, which is in turn based on the Electron framework, as is VS Code.