Suppress IProgressIndicator in Resharper ContextAction

99 views Asked by At

I'm writing a Resharper ContextAction, and the progress indicator that pops up after a second keeps stealing the focus from my text box. How can I suppress the progress indicator that gets passed to ExecutePsiTransaction?

3

There are 3 answers

0
Dmitry Osinovskiy On BEST ANSWER

Ups. Try overriding ExecuteBeforeProgressAndTransaction and calling your dialog from there instead of from ExecutePsiTransaction

1
Evgeny Pasynkov On

Just pass NullProgressIndicator.INSTANCE

0
derigel On

You better to get necessary data before starting transaction.