Skip to content

Commit

Permalink
[ruff] Stop parsing diagnostics from other sources for code action …
Browse files Browse the repository at this point in the history
…requests (#15373)
  • Loading branch information
joouha authored Jan 9, 2025
1 parent 8bc11c4 commit 8628f16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ruff_server/src/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8628f16

Please sign in to comment.