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
When a file is modified by extensions , it loses the undo history. #19800
I am extension developer of that.
Thats means external applications modifying the document are supposed to discard Undo History?
That is not right. That is a bug.
Phyo Arkar Lwin (@v3ss0n) why can you not express your edit via the text document API? what happens if the file is dirty in the editor, you just write to disk? that is a bad behaving extension 👎
I just started my first extension and reported a Bug , still it is a bug since Undo History should not be lost. Why Microsoft developers so toxic ? This is not once such noob blaming/shaming behavior is spotted on Opensource software repos by MS Employees. you can just Kindly point to the correct API or Example.
Activity
bpasero commentedon Feb 3, 2017
This is not how we recommend extensions to modify a text buffer. There is proper API to modify text documents and those should be used.
Please file this as bug to the extension you are using.
v3ss0n commentedon Feb 3, 2017
I am extension developer of that.
Thats means external applications modifying the document are supposed to discard Undo History?
That is not right. That is a bug.
bpasero commentedon Feb 3, 2017
Phyo Arkar Lwin (@v3ss0n) why can you not express your edit via the text document API? what happens if the file is dirty in the editor, you just write to disk? that is a bad behaving extension 👎
v3ss0n commentedon Feb 3, 2017
I just started my first extension and reported a Bug , still it is a bug since Undo History should not be lost. Why Microsoft developers so toxic ? This is not once such
noob blaming/shaming behavioris spotted on Opensource software repos by MS Employees. you can justKindlypoint to the correct API or Example.bpasero commentedon Feb 4, 2017
Phyo Arkar Lwin (@v3ss0n) see http://code.visualstudio.com/docs/extensionAPI/vscode-api#TextEditor and specifically the
editmethod. Anything you do in there will support undo/redo.