Add more notes where the undo stack is cleared, e.g. - when apply changes to file is used, the user switches to the file and then back to the extension, the undo stack is cleared (because file reload)