diff options
-rw-r--r-- | helix-lsp/src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index f2bb0059..4068ae1f 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -614,8 +614,8 @@ impl Client { 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()) }) } |