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
co-authored by Conrad
parent a3f0bb4547
commit 85ff03cde0
4 changed files with 52 additions and 6 deletions
+5 -1
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)?;