{"version":"2.1.111","anchor":"lsp-diagnostics-management","canonical_anchor":"lsp-diagnostics-management","heading":"LSP Diagnostics Management","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.111\/e\/lsp-diagnostics-management","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.111","markdown":"### LSP Diagnostics Management\n\nThe Language Server Protocol manager now tracks document versions with a `getDocumentVersion` method, ensuring proper version incrementing for `didOpen` and `didChange` notifications. Additionally, a new diagnostics purging system drops stale `publishDiagnostics` entries when files change, with logging: \"LSP Diagnostics: Purged N pending entry(ies) referencing ...\"\n\n**Evidence**\n\nDiagnostics purging in `kI8()` at line ~293692 (search for `\"LSP Diagnostics: Purged\"`)"}