ZIm/crates/assistant_context_editor
Marshall Bowers 8ff8dbdb2b
assistant_context_editor: Fix patch block not rendering due to window reborrow (#24461)
This PR fixes an issue where the Assistant patch block was not being
rendered when using "Suggest Edits".

The issue was that the `BlockContext` already has a borrow of the
`Window`, so we can't use `update_in` to reborrow the window.

The fix is to reuse the existing `&mut Window` reference from the
`BlockContext` so we don't need to `update_in`.

Closes #24169.

Release Notes:

- Assistant: Fixed an issue where the patch block was not being rendered
when using "Suggest Edits".

---------

Co-authored-by: Max <max@zed.dev>
2025-02-07 18:03:19 +00:00
..
src assistant_context_editor: Fix patch block not rendering due to window reborrow (#24461) 2025-02-07 18:03:19 +00:00
Cargo.toml assistant: Unship tool use (#23969) 2025-01-30 19:46:15 +00:00
LICENSE-GPL Add assistant_context_editor crate (#23429) 2025-01-21 21:22:59 +00:00