Is there anyway integration with clangd in IDE(vscode plugin)

when i change env in vscode with pio plugin
then pio changed file c_cpp_properties.json
the work mode is with microsoft c++ plugin

clangd plugin need compile_commands.json
so when i change env in vscode with pio plugin
should auto generate compile_commands.json

pio plugin can support a config to choose classis mode or clangd mode
can also support a config to set compile_commands.json generated path