mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Instead of listening for document updates sent from `sourcekitd` and sending a `PublishDiagnosticsNotification` based on the `sourcekitd` notification, wait for a little while and then execute an internal `DocumentDiagnosticsRequest` to load diagnostics and send them to the client. This has two advantages: - It unifies the two diagnostic implementations - It removes the need to keep track of semantic diagnostics in `SwiftLanguageServer` - It gets us one step closed to opening and editing documents in `syntactic_only` mode. The only thing that is left now are semantic tokens.