You can't undo reformatting the code. By inserting the XML into the editor without setValue on the model, the undo stack can be kept. Tip: Get full range of model and replace that with new content with executeEdit.
You can't undo reformatting the code.
By inserting the XML into the editor without setValue on the model, the undo stack can be kept.
Tip:
Get full range of model and replace that with new content with executeEdit.