diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2025-03-15 19:43:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 19:43:59 +0000 |
| commit | 2d6ab1580f2acbfecd19886c24ac0b31bee1cfd6 (patch) | |
| tree | 8a3fe21710e34b9f1571aaa27a6fe96251237749 | |
| parent | 6e926fd2160a925e11f5adea1fbbc4acc00c1e92 (diff) | |
| parent | 3bec5066bc1575a4ca0964439bb3874a037e65bc (diff) | |
| download | rust-2d6ab1580f2acbfecd19886c24ac0b31bee1cfd6.tar.gz rust-2d6ab1580f2acbfecd19886c24ac0b31bee1cfd6.zip | |
Merge pull request #19369 from SomeoneToIgnore/lenient-action-resolve
Do not error for actions with no data to resolve
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs index 170481ea701..5f27567c31e 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs @@ -1480,7 +1480,7 @@ pub(crate) fn handle_code_action_resolve( ) -> anyhow::Result<lsp_ext::CodeAction> { let _p = tracing::info_span!("handle_code_action_resolve").entered(); let Some(params) = code_action.data.take() else { - return Err(invalid_params_error("code action without data".to_owned()).into()); + return Ok(code_action); }; let file_id = from_proto::file_id(&snap, ¶ms.code_action_params.text_document.uri)? |
