ZIm/crates/editor/src
Cole Miller 6924720b35
Move repository state RPC handlers to the GitStore (#27391)
This is another in the series of PRs to make the GitStore own all
repository state and enable better concurrency control for git
repository scans.

After this PR, the `RepositoryEntry`s stored in worktree snapshots are
used only as a staging ground for local GitStores to pull from after
git-related events; non-local worktrees don't store them at all,
although this is not reflected in the types. GitTraversal and other
places that need information about repositories get it from the
GitStore. The GitStore also takes over handling of the new
UpdateRepository and RemoveRepository messages. However, repositories
are still discovered and scanned on a per-worktree basis, and we're
still identifying them by the (worktree-specific) project entry ID of
their working directory.

- [x] Remove WorkDirectory from RepositoryEntry
- [x] Remove worktree IDs from repository-related RPC messages
- [x] Handle UpdateRepository and RemoveRepository RPCs from the
GitStore

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2025-03-26 18:23:44 -04:00
..
display_map Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
git Move repository state RPC handlers to the GitStore (#27391) 2025-03-26 18:23:44 -04:00
scroll debugger: Fix typing in active buffer resulting a jump to an active debug line (#27439) 2025-03-25 17:08:36 +00:00
test Move repository state RPC handlers to the GitStore (#27391) 2025-03-26 18:23:44 -04:00
actions.rs Allow enabling/disabling breakpoints (#27280) 2025-03-26 02:06:08 -04:00
blink_manager.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
clangd_ext.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
code_context_menus.rs Fix color swatch shrinking in the LSP completion menu (#27450) 2025-03-25 16:55:42 -03:00
commit_tooltip.rs Fix UI font size changes not applying (#25307) 2025-02-21 06:24:02 -03:00
display_map.rs New excerpt controls (#24428) 2025-03-13 15:52:47 -06:00
editor.rs Debugger UI: Fix breakpoint rendering in git hunks (#27538) 2025-03-26 18:12:00 -04:00
editor_settings.rs Hide the mouse when the user is typing in the editor - take 2 (#27519) 2025-03-27 01:58:26 +05:30
editor_settings_controls.rs Fix UI font size changes not applying (#25307) 2025-02-21 06:24:02 -03:00
editor_tests.rs Allow enabling/disabling breakpoints (#27280) 2025-03-26 02:06:08 -04:00
element.rs Debugger UI: Fix breakpoint rendering in git hunks (#27538) 2025-03-26 18:12:00 -04:00
git.rs Project Diff 2 (#23891) 2025-02-03 13:18:50 -07:00
highlight_matching_bracket.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
hover_links.rs Add a way to control go to definition fallback (#27426) 2025-03-25 22:13:35 +00:00
hover_popover.rs Remove Pixels: Mul<Pixels, Output = Pixels> impl, add ScaledPixels ops (#27451) 2025-03-25 19:34:26 +00:00
indent_guides.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
inlay_hint_cache.rs Rename LSP function and simplify tests (#27313) 2025-03-22 19:23:11 +00:00
inline_completion_tests.rs Require alt-tab for AcceptEditPrediction when tab inserting whitespace is desired (#24705) 2025-02-12 01:14:09 +00:00
items.rs vim: Single quote mark (#27231) 2025-03-22 05:45:57 +00:00
jsx_tag_auto_close.rs jsx_tag_auto_close: Fix <Foo.Bar> component auto-close (#27374) 2025-03-24 15:43:06 +00:00
linked_editing_ranges.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
lsp_ext.rs project: Fine-grained language server management (#24038) 2025-02-14 15:41:49 +01:00
mouse_context_menu.rs Improve editor::CopyAndTrim action's discoverability (#27484) 2025-03-26 10:28:32 +00:00
movement.rs Fix sticky header in last buffer of a multibuffer (#26944) 2025-03-17 18:39:57 +00:00
persistence.rs Persist editor folds between restarts (#27252) 2025-03-21 15:28:11 +00:00
proposed_changes_editor.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
rust_analyzer_ext.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
scroll.rs editor: Refactor scrollbar-related code (#24134) 2025-03-25 22:08:46 +01:00
selections_collection.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
signature_help.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
tasks.rs Improve Zed tasks' ZED_WORKTREE_ROOT fallbacks (#25605) 2025-02-26 22:30:31 +02:00
test.rs New excerpt controls (#24428) 2025-03-13 15:52:47 -06:00