From 3816e7c5ab28ea450789ab6e16bceb26e07a5717 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 11 Feb 2013 22:42:28 +0100 Subject: [PATCH] initialize gdsl extensions on a thread which probably has a read action already --- .../org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java index 8f676d3bfd96..2dc273d250a0 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/GroovyDslFileIndex.java @@ -83,6 +83,7 @@ public class GroovyDslFileIndex extends ScalarIndexExtension { public static final String MODIFIED = "Modified"; public static final NotificationGroup NOTIFICATION_GROUP = new NotificationGroup("Groovy DSL errors", NotificationDisplayType.BALLOON, true); + private static final GroovyFrameworkConfigNotification[] EXTENSIONS = GroovyFrameworkConfigNotification.EP_NAME.getExtensions(); private final MyDataIndexer myDataIndexer = new MyDataIndexer(); private final MyInputFilter myInputFilter = new MyInputFilter(); @@ -299,7 +300,7 @@ public class GroovyDslFileIndex extends ScalarIndexExtension { Set scriptFolders = new LinkedHashSet(); // perhaps a separate extension for that? - for (GroovyFrameworkConfigNotification extension : GroovyFrameworkConfigNotification.EP_NAME.getExtensions()) { + for (GroovyFrameworkConfigNotification extension : EXTENSIONS) { File jarPath = new File(PathUtil.getJarPathForClass(extension.getClass())); if (jarPath.isFile()) { jarPath = jarPath.getParentFile();