# Remove available language only when it has loaded · gitcafe/zed

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

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

Visibility: public

Requested revision: 4d52fc0d12dff4cc1ad171a6741a17a5aa849677

Requested commit: 4d52fc0d12dff4cc1ad171a6741a17a5aa849677

Commit: 4d52fc0d12dff4cc1ad171a6741a17a5aa849677

Tree: fe9e2975239c366b0735dbecaa85ab27a29f05cc

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Remove available language only when it has loaded

This also ensures that, if you load the same language more than once,
a future that resolves to the language (or an error) is returned at
all times. Previously, we would only return it the first time the language
was loaded.

```

## Parents

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

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