ZIm/crates/assistant_context_editor
Ben Kunkle 014d9dfce1
assistant_context_editor: Try to fix crash when trying to view patch (#25572)
Closes #24571

Attempts to fix crash described in #24571 based on the panic trace
provided by the user. In short, the panic seemed to be caused by
attempting to read an `Entity<ContextEditor>` while it was being
updated. My assumption is that at some point in
`workspace.add_item_to_current_pane` the `ContextEditor` is read.
Therefore, I moved the workspace update outside of the ContextEditor
update, and replaced another `update` call with a `read` call to clean
it up and just in case that was actually the issue.

Release Notes:

- N/A
2025-02-25 13:24:51 -06:00
..
src assistant_context_editor: Try to fix crash when trying to view patch (#25572) 2025-02-25 13:24:51 -06:00
Cargo.toml Remove dependents of language_models (#25511) 2025-02-24 22:46:45 +00:00
LICENSE-GPL Add assistant_context_editor crate (#23429) 2025-01-21 21:22:59 +00:00