mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +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
|
@ -83,7 +83,7 @@ impl fmt::Display for Convention {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, CacheKey)]
|
||||
#[derive(Debug, Clone, Default, CacheKey)]
|
||||
pub struct Settings {
|
||||
pub convention: Option<Convention>,
|
||||
pub ignore_decorators: BTreeSet<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue