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.
As far as I am familiar with existing language server implementations, all TextEdits are based on the original, yet unmodified document.
So, in you example the resulting document would be aa1.
An appropriate order to apply the TextEdits to the document would be backwards. Apply the last one first, then the previous one, and so on... the first one is applied last. This way no shifting of not-yet-applied TextEdits would be necessary.
If I have a file with contents
012and a completion is applied with two text edits:Does that mean that
1should be deleted, or2?More precisely, after applying these TextEdits:
Should the resulting document have contents
aa2oraa1?The text was updated successfully, but these errors were encountered: