Basically this, just with code-generated launch.json which starts a regular node https server (eg fewer extensions needed than in this blog post):
https://floooh.github.io/2023/11/11/emscripten-ide.html