Skip to content

Commit

Permalink
Cleanup a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Junfeng Li committed Jun 19, 2018
1 parent 15c9041 commit f9f3d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languageclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ impl State {
.map(|s| s["initializationOptions"].clone())
.unwrap_or_else(|err| {
warn!("Failed to get initializationOptions: {}", err);
json!({})
json!(Value::Null)
});
let initialization_options =
get_default_initializationOptions(&languageId).combine(initialization_options);

let trace = self.get(|state| Ok(state.trace.clone()))?;
let trace = self.trace.clone();

let result: Value = self.call(
Some(&languageId),
Expand Down

0 comments on commit f9f3d66

Please sign in to comment.