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

Agus Zubiaga created

Change summary

crates/command_palette/Cargo.toml | 3 +++
crates/vim/Cargo.toml             | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)

Detailed changes

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

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"] }