Remove assistant ContextSnapshot (#27822)

Motivation for this is to simplify the context types and make it cleaner
to add image context.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Michael Sloan 2025-03-31 21:57:09 -06:00 committed by GitHub
parent c729842804
commit d0276e6666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 340 additions and 376 deletions

View file

@ -239,7 +239,7 @@ impl MessageEditor {
.ok();
thread
.update(cx, |thread, cx| {
let context = context_store.read(cx).snapshot(cx).collect::<Vec<_>>();
let context = context_store.read(cx).context().clone();
thread.action_log().update(cx, |action_log, cx| {
action_log.clear_reviewed_changes(cx);
});