mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
While we ideally could maintain diagnostics state for closed documents as the LSP specification encourages, since we have no way to do that today, it's better to throw out diagnostics for closed documents so that they do not sit around stale. We do not send a publishDiagnostics though, so the editor can maintain the list of diagnostics if desired, but when we reopen the document we can provide completely fresh data.