assistant2: Wire up the directory context picker (#22582)

This PR wires up the functionality of the directory context picker.

Release Notes:

- N/A

---------

Co-authored-by: Agus <agus@zed.dev>
This commit is contained in:
Marshall Bowers 2025-01-02 14:42:59 -05:00 committed by GitHub
parent 3cf5ab16a9
commit 2c2ca9e370
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 75 additions and 20 deletions

View file

@ -316,7 +316,10 @@ impl PickerDelegate for FileContextPickerDelegate {
}
}
fn codeblock_fence_for_path(path: Option<&Path>, row_range: Option<RangeInclusive<u32>>) -> String {
pub(crate) fn codeblock_fence_for_path(
path: Option<&Path>,
row_range: Option<RangeInclusive<u32>>,
) -> String {
let mut text = String::new();
write!(text, "```").unwrap();