sublimetext_indentxml icon indicating copy to clipboard operation
sublimetext_indentxml copied to clipboard

Performing indentation in a separate thread

Open jgorinsky opened this issue 13 years ago • 2 comments

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.

jgorinsky avatar Nov 27 '12 04:11 jgorinsky

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

alek-sys avatar Jan 05 '13 19:01 alek-sys

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.

jgorinsky avatar Jan 06 '13 00:01 jgorinsky