assistant2: fix use with rust-analyzer `"workspace": false` (#23326)

Michael Sloan created

Before this was getting errors about `TestAppContext` not existing.

Release Notes:

- N/A

Change summary

crates/assistant2/Cargo.toml | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

crates/assistant2/Cargo.toml 🔗

@@ -12,6 +12,14 @@ workspace = true
 path = "src/assistant.rs"
 doctest = false
 
+[features]
+test-support = [
+    "editor/test-support",
+    "language/test-support",
+    "project/test-support",
+    "text/test-support",
+]
+
 [dependencies]
 anyhow.workspace = true
 assistant_settings.workspace = true