mirror of https://github.com/helix-editor/helix
fix: Fix regression where formatting would fail on null response
parent
394cc4f30f
commit
bb47a9a0b8
|
@ -614,8 +614,8 @@ impl Client {
|
||||||
|
|
||||||
Some(async move {
|
Some(async move {
|
||||||
let json = request.await?;
|
let json = request.await?;
|
||||||
let response: Vec<lsp::TextEdit> = serde_json::from_value(json)?;
|
let response: Option<Vec<lsp::TextEdit>> = serde_json::from_value(json)?;
|
||||||
Ok(response)
|
Ok(response.unwrap_or_default())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue