File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
src/main/java/com/cedricziel/idea/typo3 Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 44import com .intellij .openapi .application .ApplicationManager ;
55import com .intellij .openapi .components .ProjectComponent ;
66import com .intellij .openapi .diagnostic .Logger ;
7+ import com .intellij .openapi .project .DumbService ;
78import com .intellij .openapi .project .Project ;
89import org .jetbrains .annotations .NotNull ;
910
@@ -34,10 +35,18 @@ public String getComponentName() {
3435 @ Override
3536 public void projectOpened () {
3637 Project ref = this .project ;
37- ApplicationManager .getApplication ().executeOnPooledThread (() -> ApplicationManager .getApplication ().runReadAction (() -> {
38- IconProvider .getInstance (ref );
39- }));
40- }
38+
39+ ApplicationManager .getApplication ().executeOnPooledThread (() -> ApplicationManager .getApplication ().runReadAction (() -> {
40+ while (DumbService .isDumb (ref )) {
41+ try {
42+ Thread .sleep (1 );
43+ } catch (InterruptedException e ) {
44+ e .printStackTrace ();
45+ }
46+ }
47+ IconProvider .getInstance (ref );
48+ }));
49+ }
4150
4251 @ Override
4352 public void projectClosed () {
You can’t perform that action at this time.
0 commit comments