# Add \`SettingsSources::\<T\>::json_merge_with\` function \(\#10869\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 029eb6704380643ddac21928f48d5bf7e9bb8cb7

Requested commit: 029eb6704380643ddac21928f48d5bf7e9bb8cb7

Commit: 029eb6704380643ddac21928f48d5bf7e9bb8cb7

Tree: 52d2276a0fe53846cb2f272bcca1a18aa1aae07e

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `SettingsSources::<T>::json_merge_with` function (#10869)

This PR adds a `json_merge_with` function to `SettingsSources::<T>` to
allow JSON merging settings from custom sources.

This should help avoid repeating the actual merging logic when all that
needs to be customized is which sources are being respected.

Release Notes:

- N/A
```

## Parents

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

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