ZIm/crates/assistant_context_editor/src
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
..
context assistant: Unship tool use (#23969) 2025-01-30 19:46:15 +00:00
assistant_context_editor.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context.rs assistant: Unship tool use (#23969) 2025-01-30 19:46:15 +00:00
context_editor.rs assistant_context_editor: Fix patch block not rendering due to window reborrow (#24461) 2025-02-07 18:03:19 +00:00
context_history.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context_store.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
patch.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
slash_command.rs Solve 50+ cargo doc warnings (#24071) 2025-02-01 06:19:29 +00:00
slash_command_picker.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00