Allow client to respond to workspace/configuration with null values

This is allowed per the spec if the client doesn't know about the configuration
we've requested.
This commit is contained in:
kjeremy
2020-07-20 17:25:48 -04:00
parent 76c1fac9c3
commit adc4bb5406
2 changed files with 7 additions and 0 deletions

View File

@@ -177,6 +177,11 @@ impl Config {
pub fn update(&mut self, json: serde_json::Value) {
log::info!("Config::update({:#})", json);
if json.is_null() {
return;
}
let data = ConfigData::from_json(json);
self.with_sysroot = data.withSysroot;