Suppress IProgressIndicator in Resharper ContextAction
-
20-06-2021 - |
Frage
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?
Lösung
Ups. Try overriding ExecuteBeforeProgressAndTransaction and calling your dialog from there instead of from ExecutePsiTransaction
Andere Tipps
Just pass NullProgressIndicator.INSTANCE
You better to get necessary data before starting transaction.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow