Matthew Piziak
Matthew Piziak

Reputation: 3520

Suppress IProgressIndicator in Resharper ContextAction

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?

Upvotes: 1

Views: 101

Answers (3)

Dmitry Osinovskiy
Dmitry Osinovskiy

Reputation: 10118

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

Upvotes: 4

derigel
derigel

Reputation: 3235

You better to get necessary data before starting transaction.

Upvotes: 0

Evgeny Pasynkov
Evgeny Pasynkov

Reputation: 693

Just pass NullProgressIndicator.INSTANCE

Upvotes: 0

Related Questions