ruff/crates/ruff_server/src
Jane Lewis 16a1f3cbcc
ruff server: Support setting to prioritize project configuration over editor configuration (#11086)
## Summary

This is intended to address
https://github.com/astral-sh/ruff-vscode/issues/425, and is a follow-up
to https://github.com/astral-sh/ruff/pull/11062.

A new client setting is now supported by the server,
`prioritizeFileConfiguration`. This is a boolean setting (default:
`false`) that, if set to `true`, will instruct the configuration
resolver to prioritize file configuration (aka discovered TOML files)
over configuration passed in by the editor.

A corresponding extension PR has been opened, which makes this setting
available for VS Code:
https://github.com/astral-sh/ruff-vscode/pull/457.

## Test Plan

To test this with VS Code, you'll need to check out [the VS Code
PR](https://github.com/astral-sh/ruff-vscode/pull/457) that adds this
setting.

The test process is similar to
https://github.com/astral-sh/ruff/pull/11062, but in scenarios where the
editor configuration would take priority over file configuration, file
configuration should take priority.
2024-04-26 08:17:28 +00:00
..
edit ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
server ruff server: In 'publish diagnostics' mode, document diagnostics are cleared properly when a file is closed (#11137) 2024-04-24 19:38:54 -07:00
session ruff server: Support setting to prioritize project configuration over editor configuration (#11086) 2024-04-26 08:17:28 +00:00
edit.rs ruff server now supports commands for auto-fixing, organizing imports, and formatting (#10654) 2024-04-05 23:27:35 +00:00
fix.rs ruff server now supports source.fixAll source action (#10597) 2024-04-03 16:22:17 +00:00
format.rs ruff server - A new built-in LSP for Ruff, written in Rust (#10158) 2024-03-08 20:57:23 -08:00
lib.rs ruff server: Important errors are now shown as popups (#10951) 2024-04-16 18:32:53 +00:00
lint.rs ruff server now supports commands for auto-fixing, organizing imports, and formatting (#10654) 2024-04-05 23:27:35 +00:00
message.rs ruff server: Important errors are now shown as popups (#10951) 2024-04-16 18:32:53 +00:00
server.rs Implement hover menu support for ruff-server; Issue #10595 (#11096) 2024-04-23 20:16:02 +00:00
session.rs ruff server: Ruff configuration from client settings overrides project configuration (#11062) 2024-04-23 11:19:17 -07:00