From a2f70342dfd9dc0c65c18d9e19e0e06dd9839314 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 2 May 2018 01:09:30 -0400 Subject: [PATCH] Uncomment server customization --- sbt/src/server-test/handshake/build.sbt | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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",