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

cargo check disable input for several seconds

Open sundar-h opened this issue 4 years ago • 2 comments

Duration VSCode running cargo check, The editor has no response when input. and it takes Number of seconds. Whether can be cargo check executed asynchronously? I've add settings like this.

  "files.autoSave": "afterDelay",
  "files.autoSaveDelay": 1000,
  "rust-analyzer.checkOnSave.enable": true,

sundar-h avatar Oct 09 '21 12:10 sundar-h

It runs asynchronously (blocking neither Code nor the language server), but it might be slow on your project/computer. I would disable files.autoSave.

lnicola avatar Oct 09 '21 14:10 lnicola

I'm observing the same issue - VS Code editor input is completely blocked while cargo check is running.

I also have auto-save enabled and I'm quite fond of it, so I don't consider disabling it to be a good workaround.

I'm open to doing a deeper investigation myself. But I'm not super familiar with VS Code extensions, so if anybody can suggest a good place to start that would be very helpful.

reynoldsbd avatar Sep 07 '22 21:09 reynoldsbd