Skip to content

Commit

Permalink
Closes scalatest#47
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos committed Mar 11, 2015
1 parent 736cd87 commit a29ebef
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import scala.reflect.NameTransformer
import org.scalaide.core.compiler.IScalaPresentationCompiler
import org.scalaide.core.compiler.IScalaPresentationCompiler.Implicits._
import scala.reflect.internal.util.BatchSourceFile
import scala.concurrent.duration._

class ScalaTestFileLaunchShortcut extends ILaunchShortcut {

Expand Down Expand Up @@ -203,7 +204,9 @@ object ScalaTestLaunchShortcut {
case Some(_) =>
true
case None =>
classDef.symbol.annotations.exists(aInfo => aInfo.atp.toString == "org.scalatest.WrapWith")
compiler.asyncExec {
classDef.symbol.annotations.exists(aInfo => aInfo.atp.toString == "org.scalatest.WrapWith")
}.getOrElse(false)(500.millis)
}
case _ => false
} match {
Expand Down

0 comments on commit a29ebef

Please sign in to comment.