mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
![]() ## Summary Closes: https://github.com/astral-sh/ruff/issues/16267 This change skips building the `index` in RuffSettingsIndex when the configuration preference, in the editor settings, is set to `editorOnly`. This is appropriate due to the fact that the indexes will go unused as long as the configuration preference persists. ## Test Plan I have tested this in VSCode and can confirm that we skip indexing when `editorOnly` is set. Upon switching back to `editorFirst` or `filesystemFirst` we index the settings as normal. I don't seen any unit tests for setting indexing at the moment, but I am happy to give it a shot if that is something we want. |
||
---|---|---|
.. | ||
assets | ||
docs | ||
resources/test/fixtures | ||
src | ||
tests | ||
Cargo.toml | ||
CONTRIBUTING.md | ||
README.md |
The Ruff Language Server
ruff server
is a language server that powers Ruff's editor integrations.
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 construct 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.
Refer to the documentation for more information on how to set up the language server with your editor and configure it to your liking.
Contributing
Contributions are welcome and highly appreciated. To get started, check out the contributing guidelines.
You can also join us on Discord.