rust-analyzer freezes VS Code when cloning a repo
Closed this issue · 3 comments
garysassano commented
Reproduction Steps
- Clone unikraft-cloud/examples repo.
- rust-analyzer automatically updates almost 3k files behind the scenes.
- I'm unable to discard the changes through the VS Code UI because of the sheer amount of updated files which cause the entire IDE to lag or freeze. Even running git commands from the terminal doesn't resolve the issue.

ShoyuVanilla commented
That just happens because of running flychecks(cargo check as subprocesses) on each cargo workspaces inside the repository and they don't have necessary git ignore config for target directories. (I think that the repository is not organized well) You can disable flycheck, add gitignore or open single workspace rather than opening the repository root
ShoyuVanilla commented
And this is definitely not a bug
ChayimFriedman2 commented
As @ShoyuVanilla said, you should add the target directory to .gitignore.