diff --git a/crates/ruff_server/src/lint.rs b/crates/ruff_server/src/lint.rs index 1d8bd511ce5eb..5f4ffe1c4ba69 100644 --- a/crates/ruff_server/src/lint.rs +++ b/crates/ruff_server/src/lint.rs @@ -206,6 +206,7 @@ pub(crate) fn fixes_for_diagnostics( ) -> crate::Result> { diagnostics .into_iter() + .filter(|diagnostic| diagnostic.source.as_deref() == Some(DIAGNOSTIC_NAME)) .map(move |mut diagnostic| { let Some(data) = diagnostic.data.take() else { return Ok(None);