diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index 48852bc3b3f0b5..81d77290f36158 100644 --- a/crates/project/src/lsp_store.rs +++ b/crates/project/src/lsp_store.rs @@ -7783,7 +7783,12 @@ impl LspAdapterDelegate for LocalLspAdapterDelegate { async fn which(&self, command: &OsStr) -> Option { let worktree_abs_path = self.worktree.abs_path(); let shell_path = self.shell_env().await.get("PATH").cloned(); - which::which_in(command, shell_path.as_ref(), worktree_abs_path).ok() + which::which_in( + command, + shell_path.as_ref(), + worktree_abs_path.as_raw_path_buf(), + ) + .ok() } #[cfg(target_os = "windows")]