Using `rust-analyzer` in rust project with multiple workspaces

Hi, I have a rust project with four workspaces, all sharing the same target directory. I'm using vs code as my primary editor along with rust-analyzer. I'm facing an issue. Whenever, I change any one of the workspaces, it triggers a cargo check for all the four workspaces. Is there a way to trigger cargo check only for the workspace that has changed?

The reason I want to do this, is because the cargo checks are expensive and it gets annoying when I want to run tests in one of the workspaces, but can't do so, because there is a block on the target directory.

This is not currently possible as we rerun cargo check in every editor workspace when a file is saved (code).

We'd be happy to merge a PR that makes it smarter though!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.