mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
fix: Fix regression where formatting would fail on null response
This commit is contained in:
parent
394cc4f30f
commit
bb47a9a0b8
@ -614,8 +614,8 @@ pub fn text_document_formatting(
|
||||
|
||||
Some(async move {
|
||||
let json = request.await?;
|
||||
let response: Vec<lsp::TextEdit> = serde_json::from_value(json)?;
|
||||
Ok(response)
|
||||
let response: Option<Vec<lsp::TextEdit>> = serde_json::from_value(json)?;
|
||||
Ok(response.unwrap_or_default())
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user