ruff/crates/ty/src
Micha Reiser 15cb41c1f9
[ty] Add 'remove unused ignore comment' code action (#21582)
## Summary

This PR adds a code action to remove unused ignore comments.

This PR also includes some infrastructure boilerplate to set up code
actions in the editor:

* Extend `snapshot-diagnostics` to render fixes
* Render fixes when using `--output-format=full`
* Hook up edits and the code action request in the LSP
* Add the `Unnecessary` tag to `unused-ignore-comment` diagnostics
* Group multiple unused codes into a single diagnostic

The same fix can be used on the CLI once we add `ty fix` 

Note: `unused-ignore-comment` is currently disabled by default.


https://github.com/user-attachments/assets/f9e21087-3513-4156-85d7-a90b1a7a3489
2025-11-25 08:08:21 -05:00
..
args.rs [ruff+ty] Add colour to `--help` (#21337) 2025-11-08 17:17:14 +01:00
lib.rs [ty] Add 'remove unused ignore comment' code action (#21582) 2025-11-25 08:08:21 -05:00
logging.rs [ty] Update salsa to fix hang when cycle head panics (#20577) 2025-09-25 17:13:07 +02:00
main.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
printer.rs [ty] Add `--no-progress` option (#21063) 2025-10-24 18:00:00 +02:00
python_version.rs Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
version.rs Display `ty version` for `ty --version` and `ty -V` (#17888) 2025-05-06 08:06:41 -05:00