Commit Graph
8 Commits
Author SHA1 Message Date
Parker Loflin eadffde6e9 Remove dead code, orphaned files, and unused config entries (#67664)
## Summary

Removes code, files and config entries that nothing in the repository
uses. Follow-up to the cleanups in #67126 through #67219. No behavior
changes.

- `project`: removes `SshLspAdapter`, which nothing has constructed
since language server adapters moved to the remote server. Also removes
`RepositorySnapshot::diff_stat_for_path` and its `Repository` wrapper,
`BufferStore::loading_buffers` and
`LocalLspStore::running_language_server_for_id`.
- `git_ui`: removes `move_to_project_path` from `ProjectDiff` and
`DiffMultibuffer`. #67149 removed their last caller.
- `editor`: removes `DisplaySnapshot::reverse_text_chunks` and
`DisplaySnapshot::excerpt_header_height`, and `BlockSnapshot`'s copy of
the excerpt header height, which only the latter read.
- `copilot`: removes the `setEditorInfo`, `notifyAccepted` and
`notifyRejected` request types, which Zed no longer sends.
- Removes unused helpers in `acp_thread`, `agent`, `client`, `collab`,
`fs`, `git`, `markdown`, `settings_ui`, `text`, `ui`, `util` and
`workspace`. `util` drops its `serde_json_lenient` dependency.
- `edit_prediction_cli` drops its library target, which only held a
private module. `cli` drops an uncalled `wait_for_socket` on Linux.
- Deletes orphaned files:
- 12 vim Neovim recordings for tests that were removed or don't use
`NeovimBackedTestContext`
- `script/seed-db`, which runs a removed `collab` subcommand, and
`crates/collab/seed/github_users.json`, which only seeding read
- `script/squawk` and its config, `script/upload-nightly.ps1` and its
helper, and the dev drive scripts, which no workflow or script calls
- `Dockerfile-cross.dockerignore`, `crates/db/README.md` and
`assets/themes/.gitkeep`
- Removes config entries for things that no longer exist: typos excludes
and an ignore pattern, a clippy entry for the removed `cocoa` crate,
license clarifications for crates no longer in `Cargo.lock`, `ci.yml`
references in actionlint and `check-todos`, AGENTS.md links to deleted
crash tooling, a dependency line in the `new-crate` template for a crate
that no longer exists, and the unread `repl.output_max_width_columns`
default with its docs.

### Suggested AGENTS.md additions

> For `crates/vim`: `NeovimBackedTestContext` reads `test_data/<test
name>.json`. When you remove or rename a Neovim-backed test, delete or
rename its recording too; nothing flags orphaned recordings.

## Testing

- No references to the removed items, files or settings key remain in
the tree, including in other platforms' cfg-gated code, docs and
scripts.
- `./script/clippy`
- `cargo check --workspace --all-targets` with `-D warnings`, with
default features and with `--all-features`
- `cargo fmt --all -- --check`
- `cargo test -p xtask -- workspace::`
- `cargo test -p vim -p util -p git -p text -p markdown -p fs`

## 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
2026-11-30 21:06:49 +00:00
Agus Zubiaga 18ac4ac5ef ACP debug tools pane (#36768)
Adds a new "acp: open debug tools" action that opens a new workspace
item with a log of ACP messages for the active connection.

Release Notes:

- N/A
2025-08-22 19:32:49 +00:00
Marshall Bowers e662bfc74f Configure squawk rules (#16144)
This PR configures [`squawk`](https://squawkhq.com/) to match our
database conventions.

Release Notes:

- N/A
2024-08-12 22:11:36 -04:00
Marshall Bowers 8958c9e10f Suppress typos in basic.conf (#10099)
This PR updates the `typos` configuration to suppress some typos in
`basic.conf`.

AFAICT there must have been an update to `typos` that caused this new
warning to appear.

Release Notes:

- N/A
2024-04-02 21:02:25 -04:00
Conrad Irwin ad537f638c (probably) install rosetta if it's not there 2024-01-24 11:35:59 -07:00
Max Brunsfeld 69bff7bb77 Exclude squawk rule forbidding regular-sized integers 2024-01-17 18:06:16 -08:00
Kirill Bulatov 346103dfb4 Do not run squawk tests outside of PR builds 2024-01-15 16:20:53 +02:00
Conrad Irwin 87ccbf6c19 One of these days... 2024-01-11 21:22:00 -07:00