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

This PR fixes an issue where the scripting tool wasn't being disabled
when switching to a profile that did not have it enabled.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-03-21 14:22:00 +00:00
committed by GitHub
parent e14ebcf267
commit 6bced3a834
+1
View File
@@ -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