[ruff] Stop parsing diagnostics from other sources for code action requests (#15373)

This commit is contained in:
Josiah Outram Halstead
2025-01-09 13:38:13 +00:00
committed by GitHub
parent 8bc11c49b2
commit 8628f169e9

View File

@@ -206,6 +206,7 @@ pub(crate) fn fixes_for_diagnostics(
) -> crate::Result<Vec<DiagnosticFix>> {
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);