File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/software/xdev/saveactions/processors Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
import com .intellij .openapi .actionSystem .AnAction ;
22
22
import com .intellij .openapi .actionSystem .AnActionEvent ;
23
23
import com .intellij .openapi .actionSystem .DataContext ;
24
+ import com .intellij .openapi .actionSystem .ex .ActionUtil ;
24
25
import com .intellij .openapi .actionSystem .impl .SimpleDataContext ;
26
+ import com .intellij .openapi .application .ApplicationManager ;
25
27
import com .intellij .openapi .compiler .CompilerManager ;
26
28
import com .intellij .openapi .fileEditor .FileEditorManager ;
27
29
import com .intellij .openapi .project .Project ;
@@ -91,7 +93,9 @@ public enum BuildProcessor implements Processor
91
93
ActionUiKind .NONE ,
92
94
null );
93
95
94
- anAction .actionPerformed (event );
96
+ // Run Action on EDT thread
97
+ ApplicationManager .getApplication ().invokeLater (() ->
98
+ ActionUtil .performActionDumbAwareWithCallbacks (anAction , event ));
95
99
}
96
100
})
97
101
{
You can’t perform that action at this time.
0 commit comments