rust-analyzer
rust-analyzer copied to clipboard
Feature Request: VSCode command to trigger cargo check
I want to trigger cargo check in rust-analyzer manually, via a command, instead of on save.
Scenario 1:
- I have a large project, of which
cargo checktakes minutes to perform - I don't want
cargo checkbe run on every save. Therefore, I disable running checks on save - When it does run, however, I want rust-analyzer diagnosis be updated
Scenario 2:
- I run
cargo fmtorcargo clippyon the terminal - Rust-analyzer does not rerun checks. Currently I have to save a file to trigger
Workaround:
- Right now, I have to restart rust-analyzer every time I want to refresh the diagnosis
Possible solution:
It should be easy. Just copying existing functionality (on save) out to the commands.