Closed olmisa closed 1 year ago
Thanks for this but I have a different fix I want to make here that is more general.
Can you try this fix? https://github.com/microsoft/XmlNotepad/commit/e7c86855e347459a522e75056b083c06799c8979
This fix https://github.com/microsoft/XmlNotepad/commit/e7c86855e347459a522e75056b083c06799c8979 works fine. Tested with file and case from issue #170 . Paste took 1 minute or less, before it was 5 minutes or more (i just canceled process after 5 minutes). Great.
I think we could close this PR)))
Cool thanks for testing the fix, I'm glad it works. I will close the PR. Thanks for pushing to get this fixed!
As I understand the main problem is that when we paste XmlTree then the validation will be called for every element of this XmlTree. The main idea of my fix is to call validation only once for PasteCommand.
Close #82 Close #170