# assistant_context_editor: Don't block \`ContextStore\` initialization on reloading contexts \(\#24052\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1e96663e20e5e011212db5ebecf21cd919c2ef01

Requested commit: 1e96663e20e5e011212db5ebecf21cd919c2ef01

Commit: 1e96663e20e5e011212db5ebecf21cd919c2ef01

Tree: 9407160389ec57fda20d36b336c095110c5b5239

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant_context_editor: Don't block `ContextStore` initialization on reloading contexts (#24052)

This PR changes the `ContextStore` constructor to not block on reloading
the contexts before we finish initializing it.

I noticed that the Assistant panel was taking a long time to show up in
the status bar, and upon further investigation uncovered that with a
large number of contexts (I have ~320) it takes a long time to load them
all.

Release Notes:

- N/A
```

## Parents

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

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