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 2121import com .intellij .openapi .actionSystem .AnAction ;
2222import com .intellij .openapi .actionSystem .AnActionEvent ;
2323import com .intellij .openapi .actionSystem .DataContext ;
24+ import com .intellij .openapi .actionSystem .ex .ActionUtil ;
2425import com .intellij .openapi .actionSystem .impl .SimpleDataContext ;
26+ import com .intellij .openapi .application .ApplicationManager ;
2527import com .intellij .openapi .compiler .CompilerManager ;
2628import com .intellij .openapi .fileEditor .FileEditorManager ;
2729import com .intellij .openapi .project .Project ;
@@ -91,7 +93,9 @@ public enum BuildProcessor implements Processor
9193 ActionUiKind .NONE ,
9294 null );
9395
94- anAction .actionPerformed (event );
96+ // Run Action on EDT thread
97+ ApplicationManager .getApplication ().invokeLater (() ->
98+ ActionUtil .performActionDumbAwareWithCallbacks (anAction , event ));
9599 }
96100 })
97101 {
You can’t perform that action at this time.
0 commit comments