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:
Jane Lewis 2024-04-04 15:20:50 -07:00 committed by GitHub
parent fd8da66fcb
commit d050d6da2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 106 additions and 39 deletions

View file

@ -271,7 +271,7 @@ impl SupportedCodeAction {
[
Self::QuickFix,
Self::SourceFixAll,
// Self::SourceOrganizeImports,
Self::SourceOrganizeImports,
]
.into_iter()
}