ruff/crates/ruff_server/src/server
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
..
api ruff server: Support noqa comment code action (#11276) 2024-05-12 14:39:46 -07:00
schedule [red-knot] Add "cheap" program.snapshot (#11172) 2024-04-30 07:13:26 +00:00
api.rs Implement hover menu support for ruff-server; Issue #10595 (#11096) 2024-04-23 20:16:02 +00:00
client.rs ruff server no longer hangs after shutdown (#11222) 2024-05-03 01:09:42 +00:00
connection.rs ruff server no longer hangs after shutdown (#11222) 2024-05-03 01:09:42 +00:00
schedule.rs ruff server no longer hangs after shutdown (#11222) 2024-05-03 01:09:42 +00:00