Isn't it supposed to be called
compile_commands.json
? Check if this file is being found: close all tabs other than your single source file, press Ctrl+Shift+P -> Reload Window, and look in Output -> Clangd for logs. It will tell you if it can find compile_commands.json or not.