Skip to content

Add a command to cancel active cargo check #6163

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

Closed
0x7CFE opened this issue Oct 7, 2020 · 2 comments
Closed

Add a command to cancel active cargo check #6163

0x7CFE opened this issue Oct 7, 2020 · 2 comments

Comments

@0x7CFE
Copy link

0x7CFE commented Oct 7, 2020

I'm working on a huge Rust project that takes ages even to do cargo check (not to mention release build). Obviously, it's not practical to disable check on save entirely, since it's very useful to have quick feedback on recent changes in the code right in the editor.

However, if everything was checked successfully then sometimes I'd like to do some real compile & run pass, for example to run the tests which I usually do from a separate terminal.

Unfortunately, that would be impossible, since lock would be held by an active cargo check that still checks dependencies of a recently changed module.

Anyway, it would be cool to have a way to cancel active check (like a command or something like a × button next to check progress) and proceed with external tests.

@Veetaha
Copy link
Contributor

Veetaha commented Oct 7, 2020

This has been working perfectly for me so far: #4828 (comment)

@matklad
Copy link
Member

matklad commented Oct 14, 2020

duplicates #4828

For my personal workflow, I just don't use checkOnSave. Using https://rust-analyzer.github.io/manual.html#run works better for me.

@matklad matklad closed this as completed Oct 14, 2020
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