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:
parent
a3f0bb4547
commit
85ff03cde0
4 changed files with 52 additions and 6 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue