mirror of https://github.com/sbt/sbt.git
Merge pull request #4137 from eed3si9n/wip/servertest2
Uncomment server customization in test
This commit is contained in:
commit
464a55be3a
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue