Implement FileFinder
This commit is contained in:
parent
f4ccff7b72
commit
3a4c5aa440
3 changed files with 1615 additions and 1655 deletions
|
@ -146,6 +146,11 @@ impl<D: PickerDelegate> Picker<D> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn refresh(&mut self, cx: &mut ViewContext<Self>) {
|
||||
let query = self.editor.read(cx).text(cx);
|
||||
self.update_matches(query, cx);
|
||||
}
|
||||
|
||||
pub fn update_matches(&mut self, query: String, cx: &mut ViewContext<Self>) {
|
||||
let update = self.delegate.update_matches(query, cx);
|
||||
self.matches_updated(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue