mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-04 01:36:46 +00:00
## Summary Fixes #10588. Most diagnostics from `ruff server` now appear as a much less alarming warning instead of an error. Three diagnostics still appear as errors: `F821` (`undefined name <name>`), `E902` (`IOError`) and `E999` (`SyntaxError`). ## Test Plan With an extension using the path to a locally-built executable, open a file with multiple highlighted problems. Toggle the `Experimental Server` setting on and off. The highlights should stay as warnings. Then, modify the file to have a syntactically incorrect element. The start of the invalid syntax should now have a red highlight. |
||
|---|---|---|
| .. | ||
| resources/test/fixtures | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| CONTRIBUTING.md | ||
| README.md | ||
The Ruff Language Server
Welcome! ruff server is a language server that powers editor integrations with Ruff. The job of the language server is to
listen for requests from the client, (in this case, the code editor of your choice) and call into Ruff's linter and formatter
crates to create real-time diagnostics or formatted code, which is then sent back to the client. It also tracks configuration
files in your editor's workspace, and will refresh its in-memory configuration whenever those files are modified.
Contributing
If you're interested in contributing to ruff server - well, first of all, thank you! Second of all, you might find the contribution guide to be a useful resource. Finally, don't hesitate to reach out on our Discord if you have questions.