File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching Expand file tree Collapse file tree 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
7676import org .scalaide .core .compiler .IScalaPresentationCompiler
7777import org .scalaide .core .compiler .IScalaPresentationCompiler .Implicits ._
7878import scala .reflect .internal .util .BatchSourceFile
79+ import scala .concurrent .duration ._
7980
8081class 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 {
You can’t perform that action at this time.
0 commit comments