From e0f445db8c7d189212615379af3fac7265ecd196 Mon Sep 17 00:00:00 2001 From: Dino Date: Thu, 8 Jan 2026 15:22:03 +0000 Subject: [PATCH] Enable test-support features for some dev dependencies (#46370) The `vim` crate's tests depend on `git_ui`, which transitively depends on `recent_projects` with `test-support` enabled. This causes `recent_projects` to include RemoteConnectionOptions::Mock` variant handling. However, `git_ui` was not enabling its `test-support` feature, causing compilation failures when the Mock variant was expected but not available. This commit enables the `test-support` feature for both `git_ui` and `title_bar` dev-dependencies in the `vim` crate, ensuring the Mock variant is consistently available during testing. Release Notes: - N/A --- Cargo.lock | 1 + crates/git_ui/Cargo.toml | 1 + crates/vim/Cargo.toml | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ccf1edcdbf85a11e5c874813a229ada281071fbc..9db557a83d664517823ff37904f21621a10b5aab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18278,6 +18278,7 @@ dependencies = [ "task", "text", "theme", + "title_bar", "tokio", "ui", "util", diff --git a/crates/git_ui/Cargo.toml b/crates/git_ui/Cargo.toml index 8beee0fbd7a0424a0f9ec41d9b22596f7d2b186b..f363b2e5313114c9583325f99eb46c953258708e 100644 --- a/crates/git_ui/Cargo.toml +++ b/crates/git_ui/Cargo.toml @@ -80,6 +80,7 @@ settings = { workspace = true, features = ["test-support"] } unindent.workspace = true workspace = { workspace = true, features = ["test-support"] } zlog.workspace = true +recent_projects = { workspace = true, features = ["test-support"] } [package.metadata.cargo-machete] ignored = ["tracing"] diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml index 2db1b51e72fcd862ccb1c35ff920fec7dbd47995..3905eac969dbff1caab6fc91b7f82a250d0b5f96 100644 --- a/crates/vim/Cargo.toml +++ b/crates/vim/Cargo.toml @@ -57,7 +57,8 @@ zed_actions.workspace = true assets.workspace = true command_palette = { workspace = true, features = ["test-support"] } editor = { workspace = true, features = ["test-support"] } -git_ui.workspace = true +git_ui = { workspace = true, features = ["test-support"] } +title_bar = { workspace = true, features = ["test-support"] } gpui = { workspace = true, features = ["test-support"] } indoc.workspace = true language = { workspace = true, features = ["test-support"] }