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("."))
|
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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue