# lsp_button: Fix long LSP version label \(\#46359\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1fa9dd628445623793005c73ce807d4da9f58d21

Requested commit: 1fa9dd628445623793005c73ce807d4da9f58d21

Commit: 1fa9dd628445623793005c73ce807d4da9f58d21

Tree: 640a0a39fb69e5a6a9a2e78e2d6f082823686008

Author: Danilo Leal

Committer: GitHub

## Message

```
lsp_button: Fix long LSP version label (#46359)

If the LSP version label ends up being super long, we now truncate it
and add a tooltip so you can see the whole thing. This avoids the
submenu width from being extremely big:

<img width="500" height="310" alt="Screenshot 2026-01-08 at 9  10@2x"
src="https://github.com/user-attachments/assets/4729b3f8-000d-4bb5-8908-dc243a2d6e7b"
/>

Release Notes:

- Fixed a visual bug where long LSP version labels would increase the
LSP submenu width too much.
```

## Parents

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

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