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?

有帮助吗?

解决方案

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

其他提示

Just pass NullProgressIndicator.INSTANCE

You better to get necessary data before starting transaction.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top