File tree Expand file tree Collapse file tree
src/main/java/software/xdev/saveactions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import static com .intellij .openapi .actionSystem .ActionPlaces .UNKNOWN ;
44import static com .intellij .openapi .actionSystem .CommonDataKeys .EDITOR ;
55import static com .intellij .openapi .actionSystem .CommonDataKeys .PROJECT ;
6- import static software .xdev .saveactions .utils .Helper .toVirtualFiles ;
76
87import java .util .Arrays ;
98import java .util .EnumSet ;
2726import com .intellij .openapi .compiler .CompilerManager ;
2827import com .intellij .openapi .fileEditor .FileEditorManager ;
2928import com .intellij .openapi .project .Project ;
29+ import com .intellij .openapi .vfs .VirtualFile ;
3030import com .intellij .psi .PsiFile ;
3131
3232import software .xdev .saveactions .core .ExecutionMode ;
@@ -47,7 +47,9 @@ public enum BuildProcessor implements Processor
4747 {
4848 return ;
4949 }
50- CompilerManager .getInstance (project ).compile (toVirtualFiles (psiFiles ), null );
50+ CompilerManager .getInstance (project ).compile (
51+ Arrays .stream (psiFiles ).map (PsiFile ::getVirtualFile ).toArray (VirtualFile []::new ),
52+ null );
5153 }),
5254
5355 reload (
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments