Skip to content

Commit a29ebef

Browse files
committed
Closes #47
1 parent 736cd87 commit a29ebef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchShortcut.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import scala.reflect.NameTransformer
7676
import org.scalaide.core.compiler.IScalaPresentationCompiler
7777
import org.scalaide.core.compiler.IScalaPresentationCompiler.Implicits._
7878
import scala.reflect.internal.util.BatchSourceFile
79+
import scala.concurrent.duration._
7980

8081
class ScalaTestFileLaunchShortcut extends ILaunchShortcut {
8182

@@ -203,7 +204,9 @@ object ScalaTestLaunchShortcut {
203204
case Some(_) =>
204205
true
205206
case None =>
206-
classDef.symbol.annotations.exists(aInfo => aInfo.atp.toString == "org.scalatest.WrapWith")
207+
compiler.asyncExec {
208+
classDef.symbol.annotations.exists(aInfo => aInfo.atp.toString == "org.scalatest.WrapWith")
209+
}.getOrElse(false)(500.millis)
207210
}
208211
case _ => false
209212
} match {

0 commit comments

Comments
 (0)