detecting when actions are complete

已回答

Hi - 

Is there are a way to discover when a background job is completed. I am curious about the general case but thinking specifically about executing the ReformatCodeAction - I can't find a way to tell when it's complete.

cheers, jamie

0

There's no general API. What would you like to achieve with this knowledge with regards to Reformat Code?

0

Well, I would like to execute it and when it's done get the updated document contents...

0

If you want to start reformatting yourself, it's probably best to do it manually and then execute the action you need. You can create and run ReformatCodeProcessor which supports custom postRunnable.

0

You're right... I was just trying to get for free some of what the action does. Thanks.

0

请先登录再写评论。