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.
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
--version
s against the unsuffixed binary and picking the newer one.