# extension api: Make server id types constructible, to ease writing tests \(\#45174\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 843a35a1a9e7d67a1bdff973faa6c75a811934ca

Requested commit: 843a35a1a9e7d67a1bdff973faa6c75a811934ca

Commit: 843a35a1a9e7d67a1bdff973faa6c75a811934ca

Tree: cd00ddc076a6db4dc5bb06b7e6b8bf4f3010513a

Author: Max Brunsfeld

Committer: GitHub

## Message

```
extension api: Make server id types constructible, to ease writing tests (#45174)

Currently, extensions cannot have tests that call methods like
`label_for_symbol` and `label_for_completion`, because those methods
take a `LanguageServerId`, and that type is opaque, and cannot be
constructed outside of the `zed_extension_api` crate.

This PR makes it possible to construct those types from strings, so that
it's more straightforward to write unit tests for these LSP adapter
methods.

Release Notes:

- N/A
```

## Parents

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

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