You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 applyEdits 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 applyEdits on executeCommand.
The text was updated successfully, but these errors were encountered:
bstaletic
changed the title
Calrification on order of operations when executeCommand results in multiple applyEdits
Clarification on order of operations when executeCommand results in multiple applyEdits
Sep 14, 2024
This is a question related to #2002
Two questions, really:
To elaborate on the second, my client does this:
executeCommand
requestapplyEdit
applyEdit
executeCommand
responseapplyEdit
I could aggregate more
applyEdit
s and apply them all at once, i.e.executeCommand
requestapplyEdit
applyEdit
applyEdit
executeCommand
responseBut I'm assuming that the intention was:
executeCommand
requestapplyEdit
applyEdit
executeCommand
responseOnly, 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 onexecuteCommand
.The text was updated successfully, but these errors were encountered: