Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pr2502 committed Aug 8, 2024
1 parent bae0928 commit 25bf562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,15 @@ async fn spawn(
.or_else(|| env::var("PATH").ok())
.unwrap_or_default();
format!(
"spawning langauge server: server={server:?}, args={args:?}, \
"spawning language server: server={server:?}, args={args:?}, \
cwd={workspace_root:?}, path={path:?}, env={env:?}",
)
})?;

let pid = child.id().context("child exited early, couldn't get PID")?;
tracing::Span::current().record("pid", pid);

info!(server = ?key.server, args = ?key.args, cwd = ?key.workspace_root, "spawned langauge server");
info!(server = ?key.server, args = ?key.args, cwd = ?key.workspace_root, "spawned language server");

let stderr = child.stderr.take().unwrap();
task::spawn(stderr_task(stderr).in_current_span());
Expand Down Expand Up @@ -542,7 +542,7 @@ async fn initialize_handshake(
Ok(result)
}

/// Read errors from langauge server stderr and log them
/// Read errors from language server stderr and log them
async fn stderr_task(stderr: ChildStderr) {
let mut stderr = BufReader::new(stderr);
let mut buffer = String::new();
Expand Down

0 comments on commit 25bf562

Please sign in to comment.