# Add better labels for completions for ty lsp \(\#42233\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8d632958db199ffc6061be0b1a1fa6c1289ac34d

Requested commit: 8d632958db199ffc6061be0b1a1fa6c1289ac34d

Commit: 8d632958db199ffc6061be0b1a1fa6c1289ac34d

Tree: 92e836fcb3c3ec6ae59bfb02ff8b692d38384e50

Author: Caleb Van Dyke

Committer: GitHub

## Message

```
Add better labels for completions for ty lsp (#42233)

Verified that this works locally. I modeled it after how basedpyright
and pyright work. Here is a screenshot of what it looks like (issue has
screenshots of the old state):

<img width="593" height="258" alt="Screenshot 2025-11-07 at 2 40 50 PM"
src="https://github.com/user-attachments/assets/5d2371fc-360b-422f-ba59-0a95f2083c87"
/>

Closes #42232

Release Notes:

- python/ty: Code completion menu now shows packages that will be
imported when a given entry is accepted.
```

## Parents

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

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