Repository navigation
Fix open order of visible documents when delaying open notifications - #1875
Merged
Merged
Conversation
With `delayOpenNotifications` an open notification waited for the pending open notifications of all other documents to be sent one by one. Therefore the open of a visible document was written after the ones of the hidden documents. Since the pending notifications are removed before they are sent, a request that came in later didn't wait for them and reached the server before the open of the visible document. An open or close notification doesn't depend on the open notifications of other documents. Send them right away. A close notification only drops the pending open notification of its own document. Requests and all other notifications still send the pending open notifications first. Addresses #1868 for `delayOpenNotifications`. Co-authored-by: Copilot <[email protected]>
Dirk Bäumer (dbaeumer)
enabled auto-merge (squash)
September 30, 2026 09:13
Sandeep Somavarapu (sandy081)
approved these changes
Sep 30, 2026
Dirk Bäumer (dbaeumer)
deleted the
dbaeumer/fix-1868-delay-open-order
branch
September 30, 2026 09:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
delayOpenNotificationsan open notification waited for the pending open notifications of all other documents to be sent one by one. Therefore the open of a visible document was written after the ones of the hidden documents. Since the pending notifications are removed before they are sent, a request that came in later didn't wait for them and reached the server before the open of the visible document.An open or close notification doesn't depend on the open notifications of other documents. Send them right away. A close notification only drops the pending open notification of its own document. Requests and all other notifications still send the pending open notifications first.
Addresses #1868 for
delayOpenNotifications.