# assistant_tool: Decouple \`Tool\` from \`Workspace\` \(\#26309\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/18f3f8097f2ac8c8f7610f1cb8defe7041eba46a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 18f3f8097f2ac8c8f7610f1cb8defe7041eba46a

Requested commit: 18f3f8097f2ac8c8f7610f1cb8defe7041eba46a

Commit: 18f3f8097f2ac8c8f7610f1cb8defe7041eba46a

Tree: 28de2e0d2469becc73ce72d888b8c707bda43ea0

Author: Marshall Bowers

Committer: GitHub

## Message

```
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
```

## Parents

- [4f6682c7fe5bca02406ab6a5f8a4be6eefc85eed](https://git.cafe/gitcafe/zed/commit/4f6682c7fe5bca02406ab6a5f8a4be6eefc85eed?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/18f3f8097f2ac8c8f7610f1cb8defe7041eba46a?format=markdown)
