# Fix existing CompletionMode deserialization \(\#31790\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bb9e2b040395ecef28f11706ef3df20d0faa279b

Requested commit: bb9e2b040395ecef28f11706ef3df20d0faa279b

Commit: bb9e2b040395ecef28f11706ef3df20d0faa279b

Tree: d00aad8cd205d0c824d7c776e85c39ca33fc6027

Author: Agus Zubiaga

Committer: GitHub

## Message

```
Fix existing CompletionMode deserialization (#31790)

https://github.com/zed-industries/zed/pull/31668 renamed
`CompletionMode::Max` to `CompletionMode::Burn` which is a good change,
but this broke the deserialization for threads whose completion mode was
stored in LMDB. This adds a deserialization alias so that both values
work.

We could make a full new `SerializedThread` version which migrates this
value, but that seems overkill for this single change, we can batch that
with more changes later. Also, people in nightly already have some v1
threads with `burn` stored, so it wouldn't quite work for everybody.

Release Notes:

- N/A
```

## Parents

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

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