mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:24 +00:00
[ruff
] Stop parsing diagnostics from other sources for code action requests (#15373)
This commit is contained in:
parent
8bc11c49b2
commit
8628f169e9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue