We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 13729a4 commit 996206fCopy full SHA for 996206f
src/language_server_protocol.rs
@@ -1393,7 +1393,8 @@ impl LanguageClient {
1393
},
1394
)?;
1395
1396
- let response: CodeActionResponse = serde_json::from_value(result.clone())?;
+ let response: Option<CodeActionResponse> = serde_json::from_value(result.clone())?;
1397
+ let response = response.unwrap_or_else(|| vec![]);
1398
1399
// Convert any Commands into CodeActions, so that the remainder of the handling can be
1400
// shared.
0 commit comments