rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.27k stars 1.61k forks source link

Pauseing the world with on-going git operations #16239

Open Veykril opened 10 months ago

Veykril commented 10 months ago

While doing bigger git operations like rebasing, checkout etc. A bunch of files get deleted, moved, changed and added which quite often confuses r-a (and even causes it to panic in some configurations), it might be interesting to look into whether we can pause r-a while git is keeping the lockfile and unpause once git is done with it.

cc https://github.com/rust-lang/rust-analyzer/pull/15747

ruabmbua commented 9 months ago

Does git lock anything, when doing stuff to a worktree? Sure, for the internal db it makes sense, but I am not so sure about worktrees.