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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user