I have my clangd arguments in the vscode workspace settings MyProject.code-workspace. This helps so that all developers benefit from a good setup directly after cloning the project.
On Linux we urgently require the argument --malloc-trim to avoid frequent machine crashes due to out-of-memory. With this option, the RAM usage drops by 50-80%.
However, this option does not exist on Windows. Windows developers get a clangd startup error about the unsupported option.
Is there any way to set this option platform-specific? Or some workaround, to get this going?