mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
ruff server
now supports the source.organizeImports
source action (#10652)
## Summary
This builds on top of the work in
https://github.com/astral-sh/ruff/pull/10597 to support `Ruff: Organize
imports` as an available source action.
To do this, we have to support `Clone`-ing for linter settings, since we
need to modify them in place to select import-related diagnostics
specifically (`I001` and `I002`).
## Test Plan
04282d01
-dfda-4ac5-aa8f-6a92d5f85bfd
This commit is contained in:
parent
fd8da66fcb
commit
d050d6da2e
33 changed files with 106 additions and 39 deletions
|
@ -271,7 +271,7 @@ impl SupportedCodeAction {
|
|||
[
|
||||
Self::QuickFix,
|
||||
Self::SourceFixAll,
|
||||
// Self::SourceOrganizeImports,
|
||||
Self::SourceOrganizeImports,
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue