From 5aec8c68940ee0509e64567f8085c1fa69666224 Mon Sep 17 00:00:00 2001 From: Josiah Outram Halstead Date: Thu, 9 Jan 2025 12:07:36 +0000 Subject: [PATCH] Do not parse diagnostics from other sources --- crates/ruff_server/src/lint.rs | 1 + 1 file changed, 1 insertion(+) 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);