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
{{ message }}
Repository navigation
Document edits from an extension and the Undo stack #4313
Invoke a command from an extension that makes an edit to the document. (With TextEditor.edit())
Press ctrl+z to undo
Would expect steps 1 & 2 to produce separate entries in the undo stack: the edit from (2) to be undone, and the text edit in (1) only with a further undo.
However the undo removes both the edit from (2) and the text from (1)
If, in between steps 1 & 2, you move the text cursor, then 2 separate entries to the undo stack are created, as expected.
Activity
aminroosta commentedon Apr 16, 2016
+1
74th commentedon Apr 16, 2016
+1