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

@ -252,7 +252,8 @@ impl TerminalInlineAssistant {
attach_context_to_message(
&mut request_message,
assist.context_store.read(cx).snapshot(cx),
assist.context_store.read(cx).context().iter(),
cx,
);
request_message.content.push(prompt.into());