This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait AA | |
trait AA1 | |
trait BB | |
trait BB1 | |
trait HasScenarios[A, B] { | |
def scenarios: Map[String, Scenario[A, B]] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cats.effect.Concurrent | |
import cats.syntax.flatMap._ | |
import cats.syntax.functor._ | |
import cats.effect.concurrent.Semaphore | |
trait CountDownLatch[F[_]] { | |
def countDown: F[Unit] | |
def await: F[Unit] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala b/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala | |
index 34c7258..11f34b6 100644 | |
--- a/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala | |
+++ b/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala | |
@@ -37,14 +37,14 @@ trait AutoImports { this: MetalsGlobal => | |
} | |
} | |
+ def isImportPosition: Boolean = | |
+ findLastVisitedParentTree(pos).exists(_.isInstanceOf[Import]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait SlickRunIOImplicits { self: API => | |
implicit class SlickRunIO(db: Database) { | |
/** Return an effect that runs a DB action. */ | |
def runIO[R](a: DBIOAction[R, NoStream, Nothing])(implicit cs: ContextShift[IO]): IO[R] = | |
IO.fromFuture(IO(db.run(a))).guarantee(cs.shift) | |
/** Return an effect that runs a DB action with timing metrics collected */ | |
def runIO[R](a: DBIOAction[R, NoStream, Nothing], timerName: String)( | |
implicit metric: MetricsF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hello2Impl(c: blackbox.Context)(s: c.Expr[String]): c.Expr[Unit] = { | |
import c.universe._ | |
c.Expr(q"""println("hello " + ${s.tree} + "!")""") | |
} |