Rework how we track projects and worktrees in semantic index (#2938)

This pull request introduces several improvements to the semantic search
experience. We're still missing collaboration and searching modified
buffers, which we'll tackle after we take a detour into reducing the
number of tokens used to generate embeddings.

Release Notes:

- Fixed a bug that could prevent semantic search from working when
deploying right after opening a project.
- Fixed a panic that could sometimes occur when using semantic search
while simultaneously changing a file.
- Fixed a bug that prevented semantic search from including new
worktrees when adding them to a project.
3b784668c0Antonio Scandurra committed on 9/7/2023, 1:30:19 PM· committed by GitHubparents425a396a45c8c3
8 files changedLine totals unavailable