The native server is now automatically enabled when using Ruff v0.4.5 or later. The extension can also be configured to always use the native server (or never use it) via the new languageServer setting.
Test Plan
Uninstall any local Ruff executables from your system.
Launch the extension. It should be using ruff server by default, since the extension uses a compatible bundled version (you can distinguish whether or not the native server is running by the log output)
Switch the languageServer setting to legacy. The extension should now be using ruff-lsp.
Switch the languageServer setting back to automatic.
Install Ruff version v0.4.5. Confirm that the extension uses this executable, and that it's using the native server.
Install a Ruff version before v0.4.5. Confirm that the extension uses this executable, and that it's using ruff-lsp.
Summary
The native server is now automatically enabled when using Ruff
v0.4.5
or later. The extension can also be configured to always use the native server (or never use it) via the newlanguageServer
setting.Test Plan
ruff server
by default, since the extension uses a compatible bundled version (you can distinguish whether or not the native server is running by the log output)languageServer
setting tolegacy
. The extension should now be usingruff-lsp
.languageServer
setting back toautomatic
.v0.4.5
. Confirm that the extension uses this executable, and that it's using the native server.v0.4.5
. Confirm that the extension uses this executable, and that it's usingruff-lsp
.