mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-29 20:11:13 +01:00
d5615304a1
## 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
40 lines
754 B
TOML
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
|