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 22:41:56 +00:00
committed by GitHub
parent 4f6682c7fe
commit 18f3f8097f
13 changed files with 35 additions and 52 deletions
Generated
+1 -4
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]]