ruff/crates/ruff_server/src/server
Jane Lewis 0a6327418d
`ruff server` refreshes diagnostics for open files when file configuration is changed (#10988)
## Summary

The server now requests a [workspace diagnostic
refresh](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnostic_refresh)
when a configuration file gets changed. This means that diagnostics for
all open files will be automatically re-requested by the client on a
config change.

## Test Plan

You can test this by opening several files in VS Code, setting `select`
in your file configuration to `[]`, and observing that the diagnostics
go away once the file is saved (besides any `Pylance` diagnostics).
Restore it to what it was before, and you should see the diagnostics
automatically return once a save happens.
2024-04-17 09:14:45 -07:00
..
api `ruff server` refreshes diagnostics for open files when file configuration is changed (#10988) 2024-04-17 09:14:45 -07:00
schedule `ruff server` now supports commands for auto-fixing, organizing imports, and formatting (#10654) 2024-04-05 23:27:35 +00:00
api.rs `ruff server` refreshes diagnostics for open files when file configuration is changed (#10988) 2024-04-17 09:14:45 -07:00
client.rs Client request sender and inbound response handling for `ruff server` (#10620) 2024-03-26 13:53:56 -07:00
schedule.rs `ruff server` now supports commands for auto-fixing, organizing imports, and formatting (#10654) 2024-04-05 23:27:35 +00:00