Cargo Check is run on every keyinput #19793
-
Didn't wanted to add an issue for this yet i just wanted to say that Cargo Check is run on every keyinput which slows down zed extreme. it would be better when it some delay. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
rust-analyzer has "cargo check on save" feature enabled by default, so right after we update the file contents, r-a reruns the checks. It would be interesting to know whether you have a specific configuration issue or Zed had gone rogue and saves the file on every keystroke. Other autosaving options include the delay one, as a workaround: zed/assets/settings/default.json Lines 473 to 484 in 2e32f1c |
Beta Was this translation helpful? Give feedback.
-
can i disable cargo check in Zed i mean ist clippy + rust analyzer enough. For me it would be ok running it only on compiles. |
Beta Was this translation helpful? Give feedback.
-
i think latenzy kinda was an rust-ana issue. i hangs sometimes on large builds cargo clean fixes it. |
Beta Was this translation helpful? Give feedback.
If you can read the docs, you can do it for sure.
https://zed.dev/docs/languages/rust#more-server-configuration
What I am interested in though, is
It should not run on key inputs, but on save.
Is it a bad description? Is it really running on keypress?