Currently, as of version 0.22.0, the C/C++ extension does not replace ${workspaceFolder} or the legacy ${workspaceRoot} in the configurations.compileCommands configuration, which causes different kinds of problems:
Detection of changes in compile_commands.json
Switching between source and header
Ideas for workarounds:
Replace the absolute paths in compile_commands.json with the variable ${workspaceFolder}
Warn the user if configurations.compileCommands is not resolved
Currently, as of version 0.22.0, the C/C++ extension does not replace
${workspaceFolder}
or the legacy${workspaceRoot}
in theconfigurations.compileCommands
configuration, which causes different kinds of problems:compile_commands.json
Ideas for workarounds:
compile_commands.json
with the variable${workspaceFolder}
configurations.compileCommands
is not resolved