ruff/crates/ruff_server/src
Jane Lewis d050d6da2e
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
2024-04-04 22:20:50 +00:00
..
edit ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
server ruff server now supports the source.organizeImports source action (#10652) 2024-04-04 22:20:50 +00:00
session ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
edit.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
fix.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
format.rs ruff server - A new built-in LSP for Ruff, written in Rust (#10158) 2024-03-08 20:57:23 -08:00
lib.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
lint.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
server.rs ruff server now supports the source.organizeImports source action (#10652) 2024-04-04 22:20:50 +00:00
session.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00