# Absolutize LSP and DAP paths more conservatively \(\#42482\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2bcfc129510a6bfb2054e8011a1d3e7437b6e9bc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2bcfc129510a6bfb2054e8011a1d3e7437b6e9bc

Requested commit: 2bcfc129510a6bfb2054e8011a1d3e7437b6e9bc

Commit: 2bcfc129510a6bfb2054e8011a1d3e7437b6e9bc

Tree: a990cceea5c40642163849e4d2f9b4857af406d0

Author: Andrew Farkas

Committer: GitHub

## Message

```
Absolutize LSP and DAP paths more conservatively (#42482)

Fixes a regression caused by #42135 where LSP and DAP binaries weren't
being used from `PATH` env var

Now we absolutize the path if (path is relative AND (path has multiple
components OR path exists in worktree)).

- Relative paths with multiple components might not exist in the
worktree because they are ignored. Paths with a single component will at
least have an entry saying that they exist and are ignored.
- Relative paths with multiple components will never use the `PATH` env
var, so they can be safely absolutized

Release Notes:

- N/A
```

## Parents

- [cf6ae01d07b5fd02629535250ebddc65f9d0d9ed](https://git.cafe/gitcafe/zed/commit/cf6ae01d07b5fd02629535250ebddc65f9d0d9ed?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2bcfc129510a6bfb2054e8011a1d3e7437b6e9bc?format=markdown)
