I mainly use vscode to write C++. I moved from the default plugin to ccls to clangd. Compared to ccls, clangd is much faster but doesn’t have the option to change the cache directory.
I have 32 GBs of ram and to make better use of it, I create a 10GB ramdisk at boot. I used to put my
.ccls-cache forlder there but with clangd it’s not possible. My current workaround is to delete the folder, create
mnt/ramdisk/project_name/.cache, simlink it to
/actual_path_to_project/.cache and then restart the language server. I could more or less automate it but I think it’d be overkill.
Am I missing something? If not, it’d be nice to have that option in a future release.