Is it intentional that new roots can't be added to a ra_vfs::Vfs after creation? I'm playing around with possibly writing a Kakoune "plugin" for rust-analyzer, where there would only be one server for multiple projects, so adding roots to an existing Vfs could be useful. It's possible I'm just missing something obvious, since I haven't learned much about how all of rust-analyzer fits together.
srry for short reply, doing other stufff rn
Thanks, I'll probably just find the root manually and create a Vfs individually for each project to start then.
Are you talking about using a single server process for multiple disconnected project folders? I know at least one blocker for implementing this. We cannot share the cargo check watcher between them right now...
It's the same process, but they don't actually have to share any analysis state between projects. I was trying to share the Vfs since it was relatively low-level, but there's no actual need to, I think.