Add more context to the save new file path picker (#19863)

Release Notes:

- N/A

Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
Mikayla Maki 2024-10-28 17:21:41 -07:00 committed by GitHub
parent a3f0bb4547
commit 85ff03cde0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 52 additions and 6 deletions

View file

@ -425,7 +425,11 @@ impl PickerDelegate for TasksModalDelegate {
)
}
fn confirm_completion(&self, _: String) -> Option<String> {
fn confirm_completion(
&mut self,
_: String,
_: &mut ViewContext<Picker<Self>>,
) -> Option<String> {
let task_index = self.matches.get(self.selected_index())?.candidate_id;
let tasks = self.candidates.as_ref()?;
let (_, task) = tasks.get(task_index)?;