# Use a dedicated test extension in extension tests \(\#13781\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 089cc85d4a09914808bde0849ee6ca6e7d11033a

Requested commit: 089cc85d4a09914808bde0849ee6ca6e7d11033a

Commit: 089cc85d4a09914808bde0849ee6ca6e7d11033a

Tree: 72f47af4d4f1c8ccc1f44489c3233d9024c225a4

Author: Marshall Bowers

Committer: GitHub

## Message

```
Use a dedicated test extension in extension tests (#13781)

This PR updates the `extension` crate's tests to use a dedicated test
extension for its tests instead of the real Gleam extension.

As the Gleam extension continues to evolve, it makes it less suitable to
use as a test fixture:

1. For a while now, the test has failed locally due to me having `gleam`
on my $PATH, which causes the extension's `get_language_server_command`
to go down a separate codepath.
2. With the addition of the `indexed_docs_providers` the test was
hanging indefinitely.

While these problems are likely solvable, it seems reasonable to have a
dedicated extension to use as a test fixture. That way we can do
whatever we need to exercise our test criteria.

The `test-extension` is a fork of the Gleam extension with some
additional functionality removed.

Release Notes:

- N/A
```

## Parents

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

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