feat(lsp): added diagnostic versioning to suppress stale LSP results

- Added LSP diagnostic versioning support to track document versions and suppress stale diagnostics.
- Added options parameter to `waitForDiagnostics` and `getDiagnosticsForFile` with version filtering capabilities.
- Enabled `versionSupport` in LSP client capabilities to receive diagnostic version information from servers.
- Added test coverage for stale diagnostic suppression scenarios in LSP diagnostic freshness.
This commit is contained in:
can1357
2026-04-06 01:16:26 +02:00
parent c9be206b64
commit 97e2acdf60
6 changed files with 234 additions and 28 deletions
+10
View File
@@ -1,6 +1,16 @@
# Changelog
## [Unreleased]
### Added
- Support for LSP diagnostic versioning to track document versions and suppress stale diagnostics
- Options parameter to `waitForDiagnostics` for controlling diagnostic freshness validation with `expectedDocumentVersion` and `allowUnversioned` flags
### Changed
- Enabled `versionSupport` in LSP client capabilities to receive diagnostic version information from servers
- Diagnostics storage now tracks both diagnostics and their associated document version for freshness validation
- Updated `getDiagnosticsForFile` to accept options object instead of positional parameters for better extensibility
## [13.19.0] - 2026-04-05
### Added