now for me rls works for some imple project like
according to the recent discussion on rust-analyzer (rls 2.0), it's better to look for Cargo.lock - it should work for workspace based projects too.
Is it better to search for only the "Cargo.lock" or shall one search just for both and use the first director with a hit?
disclaimer: i have no expertise in this area :).
this comment is clearer https://github.com/rust-analyzer/rust-analyzer/issues/1650#issuecomment-518088316
it looks like the problem is that search for .toml stops too early, so using both and use first directory with a hit would not work. each project in a workspace have it's own Cargo.toml, but there is only one top-level Cargo.lock.
I will already commit a bit simplified version, I guess the pattern is overkill (and slow for large directories).
Later we can tweak this further, at least for me this make rls at all usable.