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.

agent_ui: Remove dead link in agent menu (#59232)

Finn Evers1e017d04b936
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index 444cb8cff78..40ffc42b0ae 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -65,7 +65,7 @@ use anyhow::{Context as _, Result, anyhow};
#[cfg(feature = "audio")]
use audio::{Audio, Sound};
use chrono::{DateTime, Utc};
-use client::{UserStore, zed_urls};
+use client::UserStore;
use cloud_api_types::Plan;
use collections::HashMap;
use editor::{Editor, MultiBuffer};
@@ -5690,10 +5690,6 @@ impl AgentPanel {
);
}
- menu = menu.entry("Rules Library", None, |_window, cx| {
- cx.open_url(&zed_urls::rules_docs(cx));
- });
-
menu = menu.separator();
}
diff --git a/crates/client/src/zed_urls.rs b/crates/client/src/zed_urls.rs
index 8cd284da035..70ff9537d7a 100644
--- a/crates/client/src/zed_urls.rs
+++ b/crates/client/src/zed_urls.rs
@@ -56,10 +56,6 @@ pub fn skills_docs(cx: &App) -> String {
format!("{server_url}/docs/ai/skills", server_url = server_url(cx))
}
-pub fn rules_docs(cx: &App) -> String {
- format!("{server_url}/docs/ai/rules", server_url = server_url(cx))
-}
-
/// Returns the URL to Zed's ACP registry blog post.
pub fn acp_registry_blog(cx: &App) -> String {
format!(