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 10:22:00 -04:00 committed by GitHub
parent e14ebcf267
commit 6bced3a834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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