Remove stray log statements

This commit is contained in:
Antonio Scandurra 2022-02-12 12:32:57 +01:00
parent f2b4a0665f
commit e354133be0
2 changed files with 4 additions and 7 deletions

View file

@ -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); buffer.edit([range], new_text, cx);
} }
assert_eq!( assert_eq!(
dbg!(buffer.text()), buffer.text(),
" "
use a::{b, c}; use a::{b, c};
fn f() { fn f() {
b(); b();
c(); c();

View file

@ -2269,7 +2269,6 @@ impl Project {
); );
} }
cx.spawn(|this, mut cx| async move { cx.spawn(|this, mut cx| async move {
dbg!("here!");
let project_transaction = this let project_transaction = this
.update(&mut cx, |this, cx| this.format(buffers, false, cx)) .update(&mut cx, |this, cx| this.format(buffers, false, cx))
.await .await
@ -2373,7 +2372,6 @@ impl Project {
.ok_or_else(|| anyhow!("invalid completion"))?, .ok_or_else(|| anyhow!("invalid completion"))?,
language, language,
)?; )?;
dbg!(&completion);
cx.spawn(|this, mut cx| async move { cx.spawn(|this, mut cx| async move {
match this match this
.update(&mut cx, |this, cx| { .update(&mut cx, |this, cx| {
@ -2420,7 +2418,6 @@ impl Project {
.and_then(language::proto::deserialize_anchor) .and_then(language::proto::deserialize_anchor)
.ok_or_else(|| anyhow!("invalid position"))?; .ok_or_else(|| anyhow!("invalid position"))?;
cx.spawn(|this, mut cx| async move { cx.spawn(|this, mut cx| async move {
eprintln!("getting code actions");
match this match this
.update(&mut cx, |this, cx| this.code_actions(&buffer, position, cx)) .update(&mut cx, |this, cx| this.code_actions(&buffer, position, cx))
.await .await
@ -2428,7 +2425,7 @@ impl Project {
Ok(actions) => rpc.respond( Ok(actions) => rpc.respond(
receipt, receipt,
proto::GetCodeActionsResponse { proto::GetCodeActionsResponse {
actions: dbg!(actions) actions: actions
.iter() .iter()
.map(language::proto::serialize_code_action) .map(language::proto::serialize_code_action)
.collect(), .collect(),
@ -2437,7 +2434,7 @@ impl Project {
Err(error) => rpc.respond_with_error( Err(error) => rpc.respond_with_error(
receipt, receipt,
proto::Error { proto::Error {
message: dbg!(error.to_string()), message: error.to_string(),
}, },
), ),
} }