vscode-clangd
vscode-clangd copied to clipboard
`clangd` binaries suffixed with version number are not automatically found
The extension assumes that the Clangd binary is named clangd, but it's often suffixed with version number, e.g. clangd-17.
A very common usecase on Ubuntu is installing the latest Clang+Clangd from https://apt.llvm.org/, which has a suffixed binary.
I suggest that those suffixed binaries should be auto-detected too. I'd suggest talking the binary with the largest suffix number, then comparing --versions against the unsuffixed binary and picking the newer one.
You're probably aware of this, but just for completeness, you can specify other binary names (and also full paths) using "clangd.path".