diff --git a/sbt/src/server-test/handshake/build.sbt b/sbt/src/server-test/handshake/build.sbt index 9c4f59ef8..02f5f81fd 100644 --- a/sbt/src/server-test/handshake/build.sbt +++ b/sbt/src/server-test/handshake/build.sbt @@ -1,23 +1,23 @@ -// import sbt.internal.ServerHandler +import sbt.internal.server.{ ServerHandler, ServerIntent } lazy val root = (project in file(".")) .settings( Global / serverLog / logLevel := Level.Debug, // custom handler - // Global / serverHandlers += ServerHandler({ callback => - // import callback._ - // import sjsonnew.BasicJsonProtocol._ - // import sbt.internal.protocol.JsonRpcRequestMessage - // ServerIntent( - // { - // case r: JsonRpcRequestMessage if r.method == "lunar/helo" => - // jsonRpcNotify("lunar/oleh", "") - // () - // }, - // PartialFunction.empty - // ) - // }), + Global / serverHandlers += ServerHandler({ callback => + import callback._ + import sjsonnew.BasicJsonProtocol._ + import sbt.internal.protocol.JsonRpcRequestMessage + ServerIntent( + { + case r: JsonRpcRequestMessage if r.method == "lunar/helo" => + jsonRpcNotify("lunar/oleh", "") + () + }, + PartialFunction.empty + ) + }), name := "handshake", scalaVersion := "2.12.3",