mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 11:02:33 +01:00
a68d67e058
## Summary Removes fields that are written but never read, and test plumbing that never does anything. No behavior changes. - `FakeFs` gave every fake git repository a sender for git events and spawned a task to drain the receiver, but nothing ever sent one. Removes the channel, the task, and `FakeGitRepositoryState::event_emitter`. - Removing that task reorders the seeded test scheduler and exposes a race in `test_suggestion_returns_after_uninstall`, which already fails for 28 of 200 seeds on `main`. The extension store could start watching `installed/` before the test created it, then poll on a timer the test never reaches. `init_test` now creates the directory first. `test_suggestion_returns_after_failed_install` passed only because the directory was missing, so it now injects its install failure. - Zed always left `bedrock::Request`'s `stop_sequences`, `top_k`, and `metadata` empty, and the Bedrock client never sent them. Removes them, `bedrock::Metadata`, and a test assertion on `top_k`. - Nothing read `FakeLspAdapter::prettier_plugins`, since Prettier plugins come from language settings. Removes it and its setup in six tests. - Removes four more fields that nothing read: `ToolchainMetadata::new_toolchain_placeholder`, `ParameterInfo::label_range`, `PointForPosition::column_overshoot_after_line_end`, and `CaptureInput::input_device`. - Removes Mistral's unused `ContentPart` alias and two optional `editor` dependencies that no feature enables. ## Testing - `./script/clippy` - `cargo test -p fs -p bedrock -p language_models -p editor -p language -p language_core -p languages -p project -p repl -p livekit_client -p mistral -p edit_prediction_context` - `cargo test -p collab --features test-support --test collab_tests -- prettier` - Ran each `extensions_ui` test in its own process for seeds 0–99: all pass. Before, `test_suggestion_returns_after_uninstall` failed for 10 of them, including seed 0. ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - N/A