mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +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>> {
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue