ruff/crates/ruff_server/src
Jane Lewis d7f093ef9e
ruff server: Support noqa comment code action (#11276)
## Summary

Fixes https://github.com/astral-sh/ruff/issues/10594.

Code actions to disable a diagnostic via `noqa` comment are now
available.


6d3bcf11-a9d9-499b-8c7f-a10cd39cfbba

`DiagnosticFix` has been changed so that `noqa` code actions appear even
for diagnostics with no available quick fix. It can contain quick fix
edits, `noqa` comment edits, or both.

## Test Plan

The scenarios that need to be tested are as follows:
* A code action to disable a diagnostic should be available for every
diagnostic.
* Using this code action should append to the appropriate line with the
diagnostic, or modify an existing `noqa` comment.
* Adding a `noqa` comment manually should make a diagnostic disappear
* `Fix all auto-fixable problems` should not add `noqa` comments
* Removing a code from a `noqa` comment should make the diagnostic
re-appear
2024-05-12 14:39:46 -07:00
..
edit Upgrade to Rust 1.78 (#11260) 2024-05-03 12:46:21 +00:00
server ruff server: Support noqa comment code action (#11276) 2024-05-12 14:39:46 -07:00
session ruff server: Support noqa comment code action (#11276) 2024-05-12 14:39:46 -07:00
edit.rs ruff server now supports commands for auto-fixing, organizing imports, and formatting (#10654) 2024-04-05 23:27:35 +00:00
fix.rs ruff server respects per-file-ignores configuration (#11224) 2024-05-01 19:24:35 -07: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: Important errors are now shown as popups (#10951) 2024-04-16 18:32:53 +00:00
lint.rs ruff server: Support noqa comment code action (#11276) 2024-05-12 14:39:46 -07:00
message.rs ruff server no longer hangs after shutdown (#11222) 2024-05-03 01:09:42 +00:00
server.rs Fix ruff server hanging after Neovim closes (#11291) 2024-05-05 17:15:48 +00:00
session.rs ruff server: Ruff configuration from client settings overrides project configuration (#11062) 2024-04-23 11:19:17 -07:00