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
|
@ -220,7 +220,11 @@ impl PickerDelegate for OpenPathDelegate {
|
|||
})
|
||||
}
|
||||
|
||||
fn confirm_completion(&self, query: String) -> Option<String> {
|
||||
fn confirm_completion(
|
||||
&mut self,
|
||||
query: String,
|
||||
_: &mut ViewContext<Picker<Self>>,
|
||||
) -> Option<String> {
|
||||
Some(
|
||||
maybe!({
|
||||
let m = self.matches.get(self.selected_index)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue