Error building the compiler (even with ninja)

As far as I understand, that C++ extensions automatically detects the presence of compile_commands.json, which are required for autocomplete to work. You just need to build the project first for these files to be generated, and to open the directory one level above swift, so that build directory is visible too in the opened VSCode workspace. That's where these .json files are located, as per this clang-tidy section in the build docs.

1 Like