Remove stray println! statements in the LSP I/O code
This commit is contained in:
parent
ee78d6f17b
commit
50afb2d65f
1 changed files with 0 additions and 2 deletions
|
@ -135,7 +135,6 @@ impl LanguageServer {
|
||||||
buffer.resize(message_len, 0);
|
buffer.resize(message_len, 0);
|
||||||
stdout.read_exact(&mut buffer).await?;
|
stdout.read_exact(&mut buffer).await?;
|
||||||
|
|
||||||
println!("{}", std::str::from_utf8(&buffer).unwrap());
|
|
||||||
if let Ok(AnyNotification { method, params }) =
|
if let Ok(AnyNotification { method, params }) =
|
||||||
serde_json::from_slice(&buffer)
|
serde_json::from_slice(&buffer)
|
||||||
{
|
{
|
||||||
|
@ -179,7 +178,6 @@ impl LanguageServer {
|
||||||
content_len_buffer.clear();
|
content_len_buffer.clear();
|
||||||
|
|
||||||
let message = outbound_rx.recv().await?;
|
let message = outbound_rx.recv().await?;
|
||||||
println!("{}", std::str::from_utf8(&message).unwrap());
|
|
||||||
write!(content_len_buffer, "{}", message.len()).unwrap();
|
write!(content_len_buffer, "{}", message.len()).unwrap();
|
||||||
stdin.write_all(CONTENT_LEN_HEADER.as_bytes()).await?;
|
stdin.write_all(CONTENT_LEN_HEADER.as_bytes()).await?;
|
||||||
stdin.write_all(&content_len_buffer).await?;
|
stdin.write_all(&content_len_buffer).await?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue