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.

assistant2: Ensure scripting tool gets disabled when switching profiles (#27244)

Marshall Bowers6bced3a83484
diff --git a/crates/assistant2/src/tool_selector.rs b/crates/assistant2/src/tool_selector.rs
index 138a4628421..270f339629e 100644
--- a/crates/assistant2/src/tool_selector.rs
+++ b/crates/assistant2/src/tool_selector.rs
@@ -63,6 +63,7 @@ impl ToolSelector {
let tools = tool_set.clone();
move |_window, cx| {
tools.disable_source(ToolSource::Native, cx);
+ tools.disable_scripting_tool();
tools.enable(
ToolSource::Native,
&profile