Files
zed/crates/task/Cargo.toml
T
Parker Loflin d5615304a1 project: Remove dead code and redundant checks (#67200)
## Summary

Removes two unreachable modules, unused code, and redundant checks. No
behavior changes.

- Removes `project::connection_manager`. Its only caller,
`maintain_project_connection`, was removed in #36967, and collab no
longer handles `RejoinRemoteProjects`. All the module still did was
install a global that nothing read.
- Removes `task::static_source`, which nothing used, along with `task`'s
`futures` and `parking_lot` dependencies.
- Removes unused methods on `Project`, the git store and the debugger
stores, and unused items in `dap`, `lsp` and `fs`. One of them,
`Session::breakpoints_enabled`, returned `ignore_breakpoints`.
- `FakeFs::set_create_worktree_error` was the only way to set
`simulated_create_worktree_error`. Removes both, along with the check.
- `language_server_download_dir` no longer calls the blocking
`Path::exists` before `create_dir_all`.
- Smaller redundancies:
- `set_diff_base` already ignores an unchanged setting, so the caller's
comparison is gone.
  - `Vec::retain` needs no emptiness check.
  - A `bool` is assigned without comparing it first.
- A few clones, `.peekable()` calls and rebuilt structs changed nothing.

## Testing

- `./script/clippy`
- `cargo test -p project -p task -p dap -p lsp -p fs -p worktree`

## 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-19 21:54:28 +00:00

40 lines
754 B
TOML

[package]
name = "task"
version = "0.1.0"
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"
[features]
test-support = [
"gpui/test-support",
"util/test-support"
]
[lib]
path = "src/task.rs"
doctest = false
[lints]
workspace = true
[dependencies]
anyhow.workspace = true
collections.workspace = true
gpui.workspace = true
hex.workspace = true
log.workspace = true
proto.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_json_lenient.workspace = true
sha2.workspace = true
shellexpand.workspace = true
util.workspace = true
zed_actions.workspace = true
[dev-dependencies]
gpui = { workspace = true, features = ["test-support"] }
pretty_assertions.workspace = true