assistant_tool: Decouple Tool from Workspace (#26309)

This PR decouples the `Tool` trait from the `Workspace` (and from the
UI, in general).

`Tool::run` now takes a `WeakEntity<Project>` instead of a
`WeakEntity<Workspace>` and a `Window`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-07 17:41:56 -05:00 committed by GitHub
parent 4f6682c7fe
commit 18f3f8097f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 35 additions and 52 deletions

5
Cargo.lock generated
View file

@ -658,9 +658,9 @@ dependencies = [
"derive_more",
"gpui",
"parking_lot",
"project",
"serde",
"serde_json",
"workspace",
]
[[package]]
@ -675,7 +675,6 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"workspace",
]
[[package]]
@ -3140,7 +3139,6 @@ dependencies = [
"smol",
"url",
"util",
"workspace",
]
[[package]]
@ -11930,7 +11928,6 @@ dependencies = [
"serde_json",
"settings",
"util",
"workspace",
]
[[package]]