Long running task performing write action


I'm coding a plugin which reads and writes file, a bit like a compiler. As it can take a lot of time, I need to execute this asynchronously and as I produce files it requires to have this running in a write context.
I've tried to use the ProgressManager and the runWriteAction but that doesn't work or I didn't use the good combination of them.

Does anyone know how to do this ?


Please sign in to leave a comment.