question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

didChange/didSave notification ordering

See original GitHub issue

In the Julia LS we have a sanity check in a textDocument/didSave handler that confirms the text saved to disk is what the LS expects based on applying all textDocument/didChange events. This was working fine for a long time, but broke with the upgrade to LSP17.

My question is now whether there are any guarantees for notification ordering, i.e. does the client have to send all didChange notifications before the didSave notification?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Jun 16, 2022

OK. Ping when you see something problematic.

0reactions
pfitzsebcommented, Jun 14, 2022

We don’t check what’s on disk; the comparison we make is between didSave’s text parameter and the server’s document state.

I assume the remaining issues are on our end, although it’s not clear to me why they’ve only just started happening.

Thanks for the clarification anyways!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Online Ordering XT: Notifications - Revel Support
With Revel Online Ordering XT, you can now display important and urgent messages on your online ordering site, like if you're experiencing a ......
Read more >
Considerations when Using Ordered Notifications
Use the Ordered Notification only if you need to preserve the order in which the operations occur; otherwise, use Insert Notifications, Update Notifications...
Read more >
Customer order notifications – Ecwid Help Center
Customer notifications are emails that are sent to your buyers to confirm their order and keep them in the loop about the order...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found