Nice to know that SWI Prolog runs very nicely under VS Code using the Remote Containers extension, see royratcliffe/swi-prolog-dev-container (github.com) for an example. Clone the repo and open its folder in a Docker container using the Microsoft Remote Containers extension.
I’ve included help for X11-to-host connectivity using VcXsrv with disabled access control. Useful for launching Prolog’s Emacs and its many other graphical tools.