# Add \`label_for_completion\` to extension API \(\#10175\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d306b531c7131a647b21436ea6e9f722b613c010

Requested commit: d306b531c7131a647b21436ea6e9f722b613c010

Commit: d306b531c7131a647b21436ea6e9f722b613c010

Tree: 2ce3bf54765c7e869c84bb874ddb5ffa7954d673

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `label_for_completion` to extension API (#10175)

This PR adds the ability for extensions to implement
`label_for_completion` to customize completions coming back from the
language server.

We've used the Gleam extension as a motivating example, adding
`label_for_completion` support to it.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
```

## Parents

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

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