mirror of https://github.com/astral-sh/ruff
[`ruff`] Stop parsing diagnostics from other sources for code action requests (#15373)
This commit is contained in:
parent
8bc11c49b2
commit
8628f169e9
|
|
@ -206,6 +206,7 @@ pub(crate) fn fixes_for_diagnostics(
|
||||||
) -> crate::Result<Vec<DiagnosticFix>> {
|
) -> crate::Result<Vec<DiagnosticFix>> {
|
||||||
diagnostics
|
diagnostics
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
.filter(|diagnostic| diagnostic.source.as_deref() == Some(DIAGNOSTIC_NAME))
|
||||||
.map(move |mut diagnostic| {
|
.map(move |mut diagnostic| {
|
||||||
let Some(data) = diagnostic.data.take() else {
|
let Some(data) = diagnostic.data.take() else {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue