Skip to content

Commit

Permalink
fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkuiZhang committed Oct 18, 2024
1 parent c8c5113 commit feeb6fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/project/src/lsp_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7783,7 +7783,12 @@ impl LspAdapterDelegate for LocalLspAdapterDelegate {
async fn which(&self, command: &OsStr) -> Option<PathBuf> {
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")]
Expand Down

0 comments on commit feeb6fd

Please sign in to comment.