I'm not sure where you're looking, but as far as I can tell, VS Code uses practically zero native code. When looking to the git repository, all I see is TS, JS, CSS, and some misc stuff.
I know they use ripgrep¹ for their project-wide search feature. I'd imagine that the other native code would also be separate processes whose output is parsed, or in C / C++ / Rust libraries that live in their own repos and that they use via bindings which would themselves only be JS / TS code (and might live in separate repos as well).