# Fix LSP rename in Go \(\#25073\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 00bb9a4e9213378e492cc5de10f1de2782d00f6f

Requested commit: 00bb9a4e9213378e492cc5de10f1de2782d00f6f

Commit: 00bb9a4e9213378e492cc5de10f1de2782d00f6f

Tree: 491820010e7ec35427759d3de227bbb62887b8dd

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix LSP rename in Go (#25073)

Some language servers report version 0 even if the buffer hasn't been
opened yet. We detect this case and treat it as if the version was
`None`.

Closes #23706

Release Notes:

- Fixed a bug that prevented renames for some languages.
```

## Parents

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

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