# Simplify environment loading code \(\#40531\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 18daa9a839cfcc8e8d69fedbc9c9853c235e2972

Requested commit: 18daa9a839cfcc8e8d69fedbc9c9853c235e2972

Commit: 18daa9a839cfcc8e8d69fedbc9c9853c235e2972

Tree: 3b34c01a849a994efc2742e535c3072b4d5885ef

Author: Cole Miller

Committer: GitHub

## Message

```
Simplify environment loading code (#40531)

This is a refactoring PR to simplify our environment loading code by:

- Getting rid of `EnvironmentErrorMessage` in favor of using
`anyhow::Result` everywhere, with a separate `mpsc` channel to
communicate statuses that will be shown in the activity indicator
- Inlining some functions that were only called once to reduce
indirection
- Removing the separate `direnv` module

Release Notes:

- N/A
```

## Parents

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

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