Allow overrides for json-language-server settings (#20748)
Closes #20739 The JSON LSP adapter now merges user settings with cached settings, and util::merge_json_value_into pushes array contents from source to target.
This commit is contained in:
parent
96854c68ea
commit
c28f5b11f8
2 changed files with 22 additions and 5 deletions
|
@ -149,6 +149,12 @@ pub fn merge_json_value_into(source: serde_json::Value, target: &mut serde_json:
|
|||
}
|
||||
}
|
||||
|
||||
(Value::Array(source), Value::Array(target)) => {
|
||||
for value in source {
|
||||
target.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
(source, target) => *target = source,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue