mirror of https://github.com/sbt/sbt.git
contraband 0.4.1
This commit is contained in:
parent
3e1dac5161
commit
4b23036c63
|
|
@ -2,7 +2,7 @@ scalaVersion := "2.12.6"
|
|||
scalacOptions ++= Seq("-feature", "-language:postfixOps")
|
||||
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.8")
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.0")
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.1")
|
||||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.2")
|
||||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.8.0")
|
||||
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.15")
|
||||
|
|
|
|||
|
|
@ -7,23 +7,19 @@ package sbt.internal.langserver
|
|||
/**
|
||||
* Represents a diagnostic, such as a compiler error or warning.
|
||||
* Diagnostic objects are only valid in the scope of a resource.
|
||||
* @param range The range at which the message applies.
|
||||
* @param severity The diagnostic's severity. Can be omitted. If omitted it is up to the
|
||||
client to interpret diagnostics as error, warning, info or hint.
|
||||
* @param code The diagnostic's code. Can be omitted.
|
||||
* @param source A human-readable string describing the source of this
|
||||
diagnostic, e.g. 'typescript' or 'super lint'.
|
||||
* @param message The diagnostic's message.
|
||||
*/
|
||||
final class Diagnostic private (
|
||||
/** The range at which the message applies. */
|
||||
val range: sbt.internal.langserver.Range,
|
||||
/**
|
||||
* The diagnostic's severity. Can be omitted. If omitted it is up to the
|
||||
* client to interpret diagnostics as error, warning, info or hint.
|
||||
*/
|
||||
val severity: Option[Long],
|
||||
/** The diagnostic's code. Can be omitted. */
|
||||
val code: Option[String],
|
||||
/**
|
||||
* A human-readable string describing the source of this
|
||||
* diagnostic, e.g. 'typescript' or 'super lint'.
|
||||
*/
|
||||
val source: Option[String],
|
||||
/** The diagnostic's message. */
|
||||
val message: String) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** @param rootPath The rootPath of the workspace. */
|
||||
final class InitializeParams private (
|
||||
val processId: Option[Long],
|
||||
/** The rootPath of the workspace. */
|
||||
val rootPath: Option[String],
|
||||
val rootUri: Option[String],
|
||||
val initializationOptions: Option[sjsonnew.shaded.scalajson.ast.unsafe.JValue],
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** @param capabilities The capabilities the language server provides. */
|
||||
final class InitializeResult private (
|
||||
/** The capabilities the language server provides. */
|
||||
val capabilities: sbt.internal.langserver.ServerCapabilities) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/**
|
||||
* @param type The message type.
|
||||
* @param message The actual message
|
||||
*/
|
||||
final class LogMessageParams private (
|
||||
/** The message type. */
|
||||
val `type`: Long,
|
||||
/** The actual message */
|
||||
val message: String) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ package sbt.internal.langserver
|
|||
/**
|
||||
* Position in a text document expressed as zero-based line and zero-based character offset.
|
||||
* A position is between two characters like an 'insert' cursor in a editor.
|
||||
* @param line Line position in a document (zero-based).
|
||||
* @param character Character offset on a line in a document (zero-based).
|
||||
*/
|
||||
final class Position private (
|
||||
/** Line position in a document (zero-based). */
|
||||
val line: Long,
|
||||
/** Character offset on a line in a document (zero-based). */
|
||||
val character: Long) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** Diagnostics notification are sent from the server to the client to signal results of validation runs. */
|
||||
/**
|
||||
* Diagnostics notification are sent from the server to the client to signal results of validation runs.
|
||||
* @param uri The URI for which diagnostic information is reported.
|
||||
* @param diagnostics An array of diagnostic information items.
|
||||
*/
|
||||
final class PublishDiagnosticsParams private (
|
||||
/** The URI for which diagnostic information is reported. */
|
||||
val uri: String,
|
||||
/** An array of diagnostic information items. */
|
||||
val diagnostics: Vector[sbt.internal.langserver.Diagnostic]) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ package sbt.internal.langserver
|
|||
/**
|
||||
* A range in a text document expressed as (zero-based) start and end positions. A range is comparable to a selection in an editor.
|
||||
* Therefore the end position is exclusive.
|
||||
* @param start The range's start position.
|
||||
* @param end The range's end position.
|
||||
*/
|
||||
final class Range private (
|
||||
/** The range's start position. */
|
||||
val start: sbt.internal.langserver.Position,
|
||||
/** The range's end position. */
|
||||
val end: sbt.internal.langserver.Position) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** @param includeText The client is supposed to include the content on save. */
|
||||
final class SaveOptions private (
|
||||
/** The client is supposed to include the content on save. */
|
||||
val includeText: Option[Boolean]) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/**
|
||||
* @param hoverProvider The server provides hover support.
|
||||
* @param definitionProvider Goto definition
|
||||
*/
|
||||
final class ServerCapabilities private (
|
||||
val textDocumentSync: Option[sbt.internal.langserver.TextDocumentSyncOptions],
|
||||
/** The server provides hover support. */
|
||||
val hoverProvider: Option[Boolean],
|
||||
/** Goto definition */
|
||||
val definitionProvider: Option[Boolean]) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** Text documents are identified using a URI. On the protocol level, URIs are passed as strings. */
|
||||
/**
|
||||
* Text documents are identified using a URI. On the protocol level, URIs are passed as strings.
|
||||
* @param uri The text document's URI.
|
||||
*/
|
||||
final class TextDocumentIdentifier private (
|
||||
/** The text document's URI. */
|
||||
val uri: String) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.langserver
|
||||
/** Goto definition params model */
|
||||
/**
|
||||
* Goto definition params model
|
||||
* @param textDocument The text document.
|
||||
* @param position The position inside the text document.
|
||||
*/
|
||||
final class TextDocumentPositionParams private (
|
||||
/** The text document. */
|
||||
val textDocument: sbt.internal.langserver.TextDocumentIdentifier,
|
||||
/** The position inside the text document. */
|
||||
val position: sbt.internal.langserver.Position) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.protocol
|
||||
/**
|
||||
* @param method The method to be invoked.
|
||||
* @param params The method's params.
|
||||
*/
|
||||
final class JsonRpcNotificationMessage private (
|
||||
jsonrpc: String,
|
||||
/** The method to be invoked. */
|
||||
val method: String,
|
||||
/** The method's params. */
|
||||
val params: Option[sjsonnew.shaded.scalajson.ast.unsafe.JValue]) extends sbt.internal.protocol.JsonRpcMessage(jsonrpc) with Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,15 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.protocol
|
||||
/**
|
||||
* @param id The request id.
|
||||
* @param method The method to be invoked.
|
||||
* @param params The method's params.
|
||||
*/
|
||||
final class JsonRpcRequestMessage private (
|
||||
jsonrpc: String,
|
||||
/** The request id. */
|
||||
val id: String,
|
||||
/** The method to be invoked. */
|
||||
val method: String,
|
||||
/** The method's params. */
|
||||
val params: Option[sjsonnew.shaded.scalajson.ast.unsafe.JValue]) extends sbt.internal.protocol.JsonRpcMessage(jsonrpc) with Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.protocol
|
||||
/**
|
||||
* @param code A number indicating the error type that occurred.
|
||||
* @param message A string providing a short description of the error.
|
||||
* @param data A Primitive or Structured value that contains additional
|
||||
information about the error. Can be omitted.
|
||||
*/
|
||||
final class JsonRpcResponseError private (
|
||||
/** A number indicating the error type that occurred. */
|
||||
val code: Long,
|
||||
/** A string providing a short description of the error. */
|
||||
val message: String,
|
||||
/**
|
||||
* A Primitive or Structured value that contains additional
|
||||
* information about the error. Can be omitted.
|
||||
*/
|
||||
val data: Option[sjsonnew.shaded.scalajson.ast.unsafe.JValue]) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.internal.protocol
|
||||
/**
|
||||
* @param id The request id.
|
||||
* @param result The result of a request. This can be omitted in
|
||||
the case of an error.
|
||||
* @param error The error object in case a request fails.
|
||||
*/
|
||||
final class JsonRpcResponseMessage private (
|
||||
jsonrpc: String,
|
||||
/** The request id. */
|
||||
val id: Option[String],
|
||||
/**
|
||||
* The result of a request. This can be omitted in
|
||||
* the case of an error.
|
||||
*/
|
||||
val result: Option[sjsonnew.shaded.scalajson.ast.unsafe.JValue],
|
||||
/** The error object in case a request fails. */
|
||||
val error: Option[sbt.internal.protocol.JsonRpcResponseError]) extends sbt.internal.protocol.JsonRpcMessage(jsonrpc) with Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ package sbt.internal.protocol
|
|||
/**
|
||||
* This file should exist throughout the lifetime of the server.
|
||||
* It can be used to find out the transport protocol (port number etc).
|
||||
* @param uri URI of the sbt server.
|
||||
*/
|
||||
final class PortFile private (
|
||||
/** URI of the sbt server. */
|
||||
val uri: String,
|
||||
val tokenfilePath: Option[String],
|
||||
val tokenfileUri: Option[String]) extends Serializable {
|
||||
|
|
|
|||
|
|
@ -4,31 +4,27 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt
|
||||
/** Configures forking. */
|
||||
/**
|
||||
* Configures forking.
|
||||
* @param javaHome The Java installation to use. If not defined, the Java home for the current process is used.
|
||||
* @param outputStrategy Configures the forked standard output and error streams.
|
||||
If not defined, StdoutOutput is used, which maps the forked output to the output of
|
||||
this process and the forked error to the error stream of the forking process.
|
||||
* @param bootJars The Vector of jars to put on the forked boot classpath. By default, this is empty.
|
||||
* @param workingDirectory The directory to use as the working directory for the forked process.
|
||||
By default, this is the working directory of the forking process.
|
||||
* @param runJVMOptions The options to prepend to all user-specified arguments. By default, this is empty.
|
||||
* @param connectInput If true, the standard input of the forked process is connected to the standard input of this process. Otherwise, it is connected to an empty input stream.
|
||||
Connecting input streams can be problematic, especially on versions before Java 7.
|
||||
* @param envVars The environment variables to provide to the forked process. By default, none are provided.
|
||||
*/
|
||||
final class ForkOptions private (
|
||||
/** The Java installation to use. If not defined, the Java home for the current process is used. */
|
||||
val javaHome: Option[java.io.File],
|
||||
/**
|
||||
* Configures the forked standard output and error streams.
|
||||
* If not defined, StdoutOutput is used, which maps the forked output to the output of
|
||||
* this process and the forked error to the error stream of the forking process.
|
||||
*/
|
||||
val outputStrategy: Option[sbt.OutputStrategy],
|
||||
/** The Vector of jars to put on the forked boot classpath. By default, this is empty. */
|
||||
val bootJars: Vector[java.io.File],
|
||||
/**
|
||||
* The directory to use as the working directory for the forked process.
|
||||
* By default, this is the working directory of the forking process.
|
||||
*/
|
||||
val workingDirectory: Option[java.io.File],
|
||||
/** The options to prepend to all user-specified arguments. By default, this is empty. */
|
||||
val runJVMOptions: Vector[String],
|
||||
/**
|
||||
* If true, the standard input of the forked process is connected to the standard input of this process. Otherwise, it is connected to an empty input stream.
|
||||
* Connecting input streams can be problematic, especially on versions before Java 7.
|
||||
*/
|
||||
val connectInput: Boolean,
|
||||
/** The environment variables to provide to the forked process. By default, none are provided. */
|
||||
val envVars: scala.collection.immutable.Map[String, String]) extends Serializable {
|
||||
|
||||
private def this() = this(None, None, Vector(), None, Vector(), false, Map())
|
||||
|
|
|
|||
|
|
@ -4,19 +4,17 @@
|
|||
|
||||
// DO NOT EDIT MANUALLY
|
||||
package sbt.protocol.testing
|
||||
/** Mini version of sbt.testing.Event */
|
||||
/**
|
||||
* Mini version of sbt.testing.Event
|
||||
* @param fullyQualifiedName The fully qualified name of a class that can rerun the suite or test
|
||||
about which an event was fired.
|
||||
* @param status Indicates whether the event represents a test success, failure, error, skipped, ignored, canceled, pending.
|
||||
* @param duration An amount of time, in milliseconds, that was required to complete the action reported by this event.
|
||||
None, if no duration was available.
|
||||
*/
|
||||
final class TestItemDetail private (
|
||||
/**
|
||||
* The fully qualified name of a class that can rerun the suite or test
|
||||
* about which an event was fired.
|
||||
*/
|
||||
val fullyQualifiedName: String,
|
||||
/** Indicates whether the event represents a test success, failure, error, skipped, ignored, canceled, pending. */
|
||||
val status: sbt.testing.Status,
|
||||
/**
|
||||
* An amount of time, in milliseconds, that was required to complete the action reported by this event.
|
||||
* None, if no duration was available.
|
||||
*/
|
||||
val duration: Option[Long]) extends Serializable {
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue