Skip to content

Fix open order of visible documents when delaying open notifications - #1875

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/fix-1868-delay-open-order
Sep 30, 2026
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/fix-1868-delay-open-order

Conversation

@dbaeumer

Copy link
Copy Markdown
Member

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.

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]>
@dbaeumer
Dirk Bäumer (dbaeumer) merged commit 1a6e415 into main Sep 30, 2026
8 checks passed
@dbaeumer
Dirk Bäumer (dbaeumer) deleted the dbaeumer/fix-1868-delay-open-order branch September 30, 2026 09:35
@dbaeumer Dirk Bäumer (dbaeumer) added this to the 3.18.5 milestone Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants