ruff/crates/ruff_server/src/session
Jane Lewis 068e22d382
ruff server reads from a configuration TOML file in the user configuration directory if no local configuration exists (#11225)
## Summary

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

A settings file in the ruff user configuration directory will be used as
a configuration fallback, if it exists.

## Test Plan

Create a `pyproject.toml` or `ruff.toml` configuration file in the ruff
user configuration directory.

* On Linux, that will be `$XDG_CONFIG_HOME/ruff/` or `$HOME/.config`
* On macOS, that will be `$HOME/Library/Application Support`
* On Windows, that will be `{FOLDERID_LocalAppData}`

Then, open a file inside of a workspace with no configuration. The
settings in the user configuration file should be used.
2024-05-01 02:08:50 -07:00
..
workspace ruff server reads from a configuration TOML file in the user configuration directory if no local configuration exists (#11225) 2024-05-01 02:08:50 -07:00
capabilities.rs ruff server: Support publish diagnostics as a fallback when pull diagnostics aren't supported (#11092) 2024-04-22 21:06:35 -07:00
settings.rs ruff server: Support a custom TOML configuration file (#11140) 2024-04-26 23:46:07 +00:00
workspace.rs ruff server: Ruff configuration from client settings overrides project configuration (#11062) 2024-04-23 11:19:17 -07:00