File tree 1 file changed +4
-1
lines changed
org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ import scala.reflect.NameTransformer
76
76
import org .scalaide .core .compiler .IScalaPresentationCompiler
77
77
import org .scalaide .core .compiler .IScalaPresentationCompiler .Implicits ._
78
78
import scala .reflect .internal .util .BatchSourceFile
79
+ import scala .concurrent .duration ._
79
80
80
81
class ScalaTestFileLaunchShortcut extends ILaunchShortcut {
81
82
@@ -203,7 +204,9 @@ object ScalaTestLaunchShortcut {
203
204
case Some (_) =>
204
205
true
205
206
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)
207
210
}
208
211
case _ => false
209
212
} match {
You can’t perform that action at this time.
0 commit comments