Change summary
crates/file_finder2/src/file_finder.rs | 4 ----
1 file changed, 4 deletions(-)
Detailed changes
@@ -33,9 +33,7 @@ pub fn init(cx: &mut AppContext) {
impl FileFinder {
fn register(workspace: &mut Workspace, _: &mut ViewContext<Workspace>) {
- dbg!("REGISTERING");
workspace.register_action(|workspace, _: &Toggle, cx| {
- dbg!("CALLING ACTION");
let Some(file_finder) = workspace.current_modal::<Self>(cx) else {
Self::open(workspace, cx);
return;
@@ -594,7 +592,6 @@ impl PickerDelegate for FileFinderDelegate {
}
fn confirm(&mut self, secondary: bool, cx: &mut ViewContext<Picker<FileFinderDelegate>>) {
- dbg!("CONFIRMING???");
if let Some(m) = self.matches.get(self.selected_index()) {
if let Some(workspace) = self.workspace.upgrade() {
let open_task = workspace.update(cx, move |workspace, cx| {
@@ -692,7 +689,6 @@ impl PickerDelegate for FileFinderDelegate {
.log_err();
}
}
- dbg!("DISMISSING");
finder
.update(&mut cx, |_, cx| cx.emit(ModalEvent::Dismissed))
.ok()?;