edit prediction: Context debug view (#38435)

Adds a `dev: open edit prediction context` action that opens a new
workspace pane that displays the excerpts and snippets that would be
included in the edit prediction request.

Release Notes:

- N/A

---------

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Agus Zubiaga
2025-09-18 15:09:44 -03:00
committed by GitHub
co-authored by Bennet
parent 55d130a166
commit df50b5c14a
15 changed files with 583 additions and 19 deletions
@@ -41,14 +41,14 @@ impl Declaration {
}
}
pub fn project_entry_id(&self) -> Option<ProjectEntryId> {
pub fn project_entry_id(&self) -> ProjectEntryId {
match self {
Declaration::File {
project_entry_id, ..
} => Some(*project_entry_id),
} => *project_entry_id,
Declaration::Buffer {
project_entry_id, ..
} => Some(*project_entry_id),
} => *project_entry_id,
}
}