# Stop canonicalizing LSP locations before worktree lookup \(\#63754\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3569541038dd51524b03998ba4d38d253cb54f80

Requested commit: 3569541038dd51524b03998ba4d38d253cb54f80

Commit: 3569541038dd51524b03998ba4d38d253cb54f80

Tree: b7df3060ca5514b98a688dd25f6466e35f8512e1

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Stop canonicalizing LSP locations before worktree lookup (#63754)

Closes
https://github.com/zed-industries/zed/pull/61392#issuecomment-5538772188
Follow-up to https://github.com/zed-industries/zed/pull/61392



https://github.com/user-attachments/assets/6c745474-6b6e-4cfa-b1b6-87e9631973bf


Not every language server wants to deal with the canonicalized paths,
some (e.g. gopls) can resolve them themselves, and keep sending
symlinked paths over the LSP — canonicalizing them means we will break
out of the current worktree and open odd singleton files instead.

Release Notes:

- Fixed goToDefinition opening out-of-worktree entries
```

## Parents

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

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