# settings: Use a derive macro for refine \(\#38451\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b09764c54a92bfb567aa0ca6d00203cc641e5a3d

Requested commit: b09764c54a92bfb567aa0ca6d00203cc641e5a3d

Commit: b09764c54a92bfb567aa0ca6d00203cc641e5a3d

Tree: 29b0ea94629750639df7a31bb171202f54d1ddce

Author: Conrad Irwin

Committer: GitHub

## Message

```
settings: Use a derive macro for refine (#38451)

When we refactored settings to not pass JSON blobs around, we ended up
needing
to write *a lot* of code that just merged things (like json merge used
to do).

Use a derive macro to prevent typos in this logic.

Release Notes:

- N/A
```

## Parents

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

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