Skip to content

Commit 8628f16

Browse files
authored
[ruff] Stop parsing diagnostics from other sources for code action requests (#15373)
1 parent 8bc11c4 commit 8628f16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ruff_server/src/lint.rs

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ pub(crate) fn fixes_for_diagnostics(
206206
) -> crate::Result<Vec<DiagnosticFix>> {
207207
diagnostics
208208
.into_iter()
209+
.filter(|diagnostic| diagnostic.source.as_deref() == Some(DIAGNOSTIC_NAME))
209210
.map(move |mut diagnostic| {
210211
let Some(data) = diagnostic.data.take() else {
211212
return Ok(None);

0 commit comments

Comments
 (0)