ruff
0a632741 - `ruff server` refreshes diagnostics for open files when file configuration is changed (#10988)

Commit
1 year ago
`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.
Author
Parents
Loading