The extensions are known to work when connecting to recent stable/LTS version of: Visual Studio Code Remote Development has prerequisites for the specific host / container / WSL distribution you will be connecting to.
Linux is a highly variable environment and the large number of server, container, and desktop distributions can make it difficult to know what is supported.
Configure IntelliSense for cross-compiling.