SIGN IN SIGN UP

Fix `Workspace` references being leaked (#17497)

We noticed that the `Workspace` was never released (along with the
`Project` and everything that comes along with that) when closing a
window.

After playing around with the LeakDetector and debugging with
`cx.on_release()` callbacks, we found two culprits: the inline assistant
and the outline panel.

Both held strong references to `View<Workspace>` after PR #16589 and PR
#16845.

This PR changes both references to `WeakView<Workspace>` which fixes the
leak but keeps the behaviour the same.

Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
T
Thorsten Ball committed
54dd40878fda24701d98ac592af4581186467bf7
Parent: e6c1c51
Committed by GitHub <noreply@github.com> on 9/6/2024, 1:32:34 PM