rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Feature Request: VSCode command to trigger cargo check

Open rongcuid opened this issue 3 years ago • 0 comments

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 check takes minutes to perform
  • I don't want cargo check be 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 fmt or cargo clippy on 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.

rongcuid avatar Jul 25 '22 11:07 rongcuid