sublimetext_indentxml
sublimetext_indentxml copied to clipboard
Performing indentation in a separate thread
Indenting large files was locking up the UI thread, so I moved the function to a separate thread class and added a little status message while it's processing.
Thanks for code! Won't it create any problems with accessing UI from background thread? I will do some smoke test and merge it a bit later
No prob. Hope it works for you.
The UI changes are still happening in the UI thread. It's just processing the indents in the separate thread. I think it will complain if the UI is accessed from a background thread.