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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user