Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: VSCode command to trigger cargo check #12870

Closed
rongcuid opened this issue Jul 25, 2022 · 2 comments
Closed

Feature Request: VSCode command to trigger cargo check #12870

rongcuid opened this issue Jul 25, 2022 · 2 comments

Comments

@rongcuid
Copy link

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.

@jannes
Copy link

jannes commented Feb 17, 2023

Isn't this already supported? See #13125

@Veykril
Copy link
Member

Veykril commented Feb 17, 2023

It is

@Veykril Veykril closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants