mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 20:01:33 +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 {
|
impl FileFinder {
|
||||||
fn register(workspace: &mut Workspace, _: &mut ViewContext<Workspace>) {
|
fn register(workspace: &mut Workspace, _: &mut ViewContext<Workspace>) {
|
||||||
dbg!("REGISTERING");
|
|
||||||
workspace.register_action(|workspace, _: &Toggle, cx| {
|
workspace.register_action(|workspace, _: &Toggle, cx| {
|
||||||
dbg!("CALLING ACTION");
|
|
||||||
let Some(file_finder) = workspace.current_modal::<Self>(cx) else {
|
let Some(file_finder) = workspace.current_modal::<Self>(cx) else {
|
||||||
Self::open(workspace, cx);
|
Self::open(workspace, cx);
|
||||||
return;
|
return;
|
||||||
|
@ -594,7 +592,6 @@ impl PickerDelegate for FileFinderDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn confirm(&mut self, secondary: bool, cx: &mut ViewContext<Picker<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(m) = self.matches.get(self.selected_index()) {
|
||||||
if let Some(workspace) = self.workspace.upgrade() {
|
if let Some(workspace) = self.workspace.upgrade() {
|
||||||
let open_task = workspace.update(cx, move |workspace, cx| {
|
let open_task = workspace.update(cx, move |workspace, cx| {
|
||||||
|
@ -692,7 +689,6 @@ impl PickerDelegate for FileFinderDelegate {
|
||||||
.log_err();
|
.log_err();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dbg!("DISMISSING");
|
|
||||||
finder
|
finder
|
||||||
.update(&mut cx, |_, cx| cx.emit(ModalEvent::Dismissed))
|
.update(&mut cx, |_, cx| cx.emit(ModalEvent::Dismissed))
|
||||||
.ok()?;
|
.ok()?;
|
||||||
|
|
Loading…
Reference in a new issue