diff --git a/crates/ruff_server/src/server/api/requests/code_action_resolve.rs b/crates/ruff_server/src/server/api/requests/code_action_resolve.rs index 5e1d930768..7cf9a1df3f 100644 --- a/crates/ruff_server/src/server/api/requests/code_action_resolve.rs +++ b/crates/ruff_server/src/server/api/requests/code_action_resolve.rs @@ -69,10 +69,9 @@ impl super::BackgroundDocumentRequestHandler for CodeActionResolve { .with_failure_code(ErrorCode::InternalError)?, ), SupportedCodeAction::QuickFix => { - return Err(anyhow::anyhow!( - "Got a code action that should not need additional resolution: {action_kind:?}" - )) - .with_failure_code(ErrorCode::InvalidParams) + // The client may ask us to resolve a code action, as it has no way of knowing + // whether e.g. `command` field will be filled out by the resolution callback. + return Ok(action); } };