mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
remove dbg
This commit is contained in:
parent
b81b96f353
commit
817c6dd49c
1 changed files with 0 additions and 4 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Reference in a new issue