Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use test db for command palette under vim tests (#43731)

Agus Zubiaga7b4e050dd850
diff --git a/crates/command_palette/Cargo.toml b/crates/command_palette/Cargo.toml
index f21c202721f..bd86c10a807 100644
--- a/crates/command_palette/Cargo.toml
+++ b/crates/command_palette/Cargo.toml
@@ -8,6 +8,9 @@ license = "GPL-3.0-or-later"
[lints]
workspace = true
+[features]
+test-support = ["db/test-support"]
+
[lib]
path = "src/command_palette.rs"
doctest = false
diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml
index 1262a615f7b..a5834f85503 100644
--- a/crates/vim/Cargo.toml
+++ b/crates/vim/Cargo.toml
@@ -55,7 +55,7 @@ zed_actions.workspace = true
[dev-dependencies]
assets.workspace = true
-command_palette.workspace = true
+command_palette = { workspace = true, features = ["test-support"] }
editor = { workspace = true, features = ["test-support"] }
git_ui.workspace = true
gpui = { workspace = true, features = ["test-support"] }