Open
Description
This is a question related to #2002
Two questions, really:
- Is there a server that would ever produce more than a single applyEdit on executeCommand?
- What is the exact order of operations?
To elaborate on the second, my client does this:
- Send
executeCommand
request - Receive
applyEdit
- Respond to
applyEdit
- Receive
executeCommand
response - Assert that there was at most one
applyEdit
- Actually apply the edit and send change notifications.
I could aggregate more applyEdit
s and apply them all at once, i.e.
- Send
executeCommand
request - Receive
applyEdit
- Respond to
applyEdit
- Receive another
applyEdit
- Respond to that
- Receive
executeCommand
response - Actually apply the edits and send change notifications.
But I'm assuming that the intention was:
- Send
executeCommand
request - Receive
applyEdit
- Apply it.
- Send change notification.
- Respond to
applyEdit
- Repeat 2, 3, 4, 5
- Receive
executeCommand
response
Only, there I have not clue what should come first - the change notification or the applyEdit
response.
Once again, having a server to test against would be crucial in order for me to implement this kind of thing.
All the servers I've come across either produced 1 or 0 applyEdit
s on executeCommand
.