From e354133be0ff4baf51bf4abbfa444806f1bf4ec9 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 12 Feb 2022 12:32:57 +0100 Subject: [PATCH] Remove stray log statements --- crates/language/src/tests.rs | 4 ++-- crates/project/src/project.rs | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/language/src/tests.rs b/crates/language/src/tests.rs index 024d63f0ebe1abbc81867717d50f34d1f86b0a73..c7ea90714cdb474bd42018f6a249e5c8029c47c4 100644 --- a/crates/language/src/tests.rs +++ b/crates/language/src/tests.rs @@ -1041,10 +1041,10 @@ async fn test_edits_from_lsp_with_edits_on_adjacent_lines(mut cx: gpui::TestAppC buffer.edit([range], new_text, cx); } assert_eq!( - dbg!(buffer.text()), + buffer.text(), " use a::{b, c}; - + fn f() { b(); c(); diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 9320eb7b349b2a8b3a5480d1c0c324c8c8b63250..e678ce4f081da32114b44eb9ba0a139099832302 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -2269,7 +2269,6 @@ impl Project { ); } cx.spawn(|this, mut cx| async move { - dbg!("here!"); let project_transaction = this .update(&mut cx, |this, cx| this.format(buffers, false, cx)) .await @@ -2373,7 +2372,6 @@ impl Project { .ok_or_else(|| anyhow!("invalid completion"))?, language, )?; - dbg!(&completion); cx.spawn(|this, mut cx| async move { match this .update(&mut cx, |this, cx| { @@ -2420,7 +2418,6 @@ impl Project { .and_then(language::proto::deserialize_anchor) .ok_or_else(|| anyhow!("invalid position"))?; cx.spawn(|this, mut cx| async move { - eprintln!("getting code actions"); match this .update(&mut cx, |this, cx| this.code_actions(&buffer, position, cx)) .await @@ -2428,7 +2425,7 @@ impl Project { Ok(actions) => rpc.respond( receipt, proto::GetCodeActionsResponse { - actions: dbg!(actions) + actions: actions .iter() .map(language::proto::serialize_code_action) .collect(), @@ -2437,7 +2434,7 @@ impl Project { Err(error) => rpc.respond_with_error( receipt, proto::Error { - message: dbg!(error.to_string()), + message: error.to_string(), }, ), }