Uncomment server customization

This commit is contained in:
Eugene Yokota 2018-05-02 01:09:30 -04:00
parent 36c3215320
commit a2f70342df
1 changed files with 14 additions and 14 deletions

View File

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