Collapse 1-line scaladocs

This commit is contained in:
Dale Wijnand 2018-03-09 12:01:53 +00:00
parent 087f21741d
commit de690f4e41
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
2 changed files with 7 additions and 23 deletions

View File

@ -81,9 +81,7 @@ private[sbt] object LanguageServerProtocol {
})
}
/**
* Implements Language Server Protocol <https://github.com/Microsoft/language-server-protocol>.
*/
/** Implements Language Server Protocol <https://github.com/Microsoft/language-server-protocol>. */
private[sbt] trait LanguageServerProtocol extends CommandChannel { self =>
lazy val internalJsonProtocol = new InitializeOptionFormats with sjsonnew.BasicJsonProtocol {}
@ -136,9 +134,7 @@ private[sbt] trait LanguageServerProtocol extends CommandChannel { self =>
}
}
/**
* Respond back to Language Server's client.
*/
/** Respond back to Language Server's client. */
private[sbt] def jsonRpcRespond[A: JsonFormat](event: A, execId: Option[String]): Unit = {
val m =
JsonRpcResponseMessage("2.0", execId, Option(Converter.toJson[A](event).get), None)
@ -146,9 +142,7 @@ private[sbt] trait LanguageServerProtocol extends CommandChannel { self =>
publishBytes(bytes)
}
/**
* Respond back to Language Server's client.
*/
/** Respond back to Language Server's client. */
private[sbt] def jsonRpcRespondError(execId: Option[String],
code: Long,
message: String): Unit = {
@ -158,9 +152,7 @@ private[sbt] trait LanguageServerProtocol extends CommandChannel { self =>
publishBytes(bytes)
}
/**
* Respond back to Language Server's client.
*/
/** Respond back to Language Server's client. */
private[sbt] def jsonRpcRespondError[A: JsonFormat](execId: Option[String],
code: Long,
message: String,
@ -171,9 +163,7 @@ private[sbt] trait LanguageServerProtocol extends CommandChannel { self =>
publishBytes(bytes)
}
/**
* Notify to Language Server's client.
*/
/** Notify to Language Server's client. */
private[sbt] def jsonRpcNotify[A: JsonFormat](method: String, params: A): Unit = {
val m =
JsonRpcNotificationMessage("2.0", method, Option(Converter.toJson[A](params).get))

View File

@ -41,10 +41,7 @@ object Serialization {
CompactPrinter(json).getBytes("UTF-8")
}
/**
* This formats the message according to JSON-RPC.
* http://www.jsonrpc.org/specification
*/
/** This formats the message according to JSON-RPC. http://www.jsonrpc.org/specification */
private[sbt] def serializeResponseMessage(message: JsonRpcResponseMessage): Array[Byte] = {
import sbt.internal.protocol.codec.JsonRPCProtocol._
val json: JValue = Converter.toJson[JsonRpcResponseMessage](message).get
@ -57,10 +54,7 @@ object Serialization {
body).getBytes("UTF-8")
}
/**
* This formats the message according to JSON-RPC.
* http://www.jsonrpc.org/specification
*/
/** This formats the message according to JSON-RPC. http://www.jsonrpc.org/specification */
private[sbt] def serializeNotificationMessage(
message: JsonRpcNotificationMessage): Array[Byte] = {
import sbt.internal.protocol.codec.JsonRPCProtocol._