mirror of https://github.com/sbt/sbt.git
fix typo
This commit is contained in:
parent
48062ff36c
commit
2edb4dcbb6
|
|
@ -70,7 +70,7 @@ object SettingsTest extends Properties("settings") {
|
|||
).toSeq
|
||||
|
||||
{
|
||||
// Note: This causes a cycle refernec error, quite frequently.
|
||||
// Note: This causes a cycle reference error, quite frequently.
|
||||
checkKey(last, Some(nr - 1), evaluate(setting(chk, value(0)) +: derivedSettings)) :| "Not derived?"
|
||||
} && {
|
||||
checkKey(last, None, evaluate(derivedSettings)) :| "Should not be derived"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ object EscHelpers {
|
|||
*
|
||||
* The CSI (control sequence instruction) codes start with ESC + '['. This is for testing the second character.
|
||||
*
|
||||
* There is an additional CSI (one character) that we could test for, but is not frequnetly used, and we don't
|
||||
* There is an additional CSI (one character) that we could test for, but is not frequently used, and we don't
|
||||
* check for it.
|
||||
*
|
||||
* cf. http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ object BasicKeys {
|
|||
)
|
||||
private[sbt] val detachStdio = AttributeKey[Boolean](
|
||||
"detach-stdio",
|
||||
"Toggles wheter or not to close system in, out and error when the server starts.",
|
||||
"Toggles whether or not to close system in, out and error when the server starts.",
|
||||
1000
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ private[sbt] object Server {
|
|||
IO.write(tokenfile, CompactPrinter(jsonToken), IO.utf8, true)
|
||||
}
|
||||
|
||||
/** Set the persmission of the file such that the only the owner can read/write it. */
|
||||
/** Set the permission of the file such that the only the owner can read/write it. */
|
||||
private[this] def ownerOnly(file: File): Unit = {
|
||||
def acl(owner: UserPrincipal) = {
|
||||
val builder = AclEntry.newBuilder
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ object ServerHandler {
|
|||
lazy val fallback: ServerHandler = ServerHandler({ handler =>
|
||||
ServerIntent(
|
||||
onRequest = { case x => handler.log.debug(s"Unhandled request received: ${x.method}: $x") },
|
||||
onResponse = { case x => handler.log.debug(s"Unhandled responce received") },
|
||||
onResponse = { case x => handler.log.debug(s"Unhandled response received") },
|
||||
onNotification = {
|
||||
case x => handler.log.debug(s"Unhandled notification received: ${x.method}: $x")
|
||||
},
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ abstract class BackgroundJobService extends Closeable {
|
|||
start(logger, file)._2.apply()
|
||||
}
|
||||
|
||||
/** Same as shutown. */
|
||||
/** Same as shutdown. */
|
||||
def close(): Unit
|
||||
|
||||
/** Shuts down all background jobs. */
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
package sbt
|
||||
|
||||
/**
|
||||
* InteractionService provides an abstration over standard input.
|
||||
* InteractionService provides an abstraction over standard input.
|
||||
* In the future this could be used to ask for inputs from
|
||||
* other forms of sbt clients such as thin clients and IDEs.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@ trait UpperStateOps extends Any {
|
|||
|
||||
/**
|
||||
* ProjectRef to the current project of the state session that can be change using
|
||||
* `project` commmand.
|
||||
* `project` command.
|
||||
*/
|
||||
def currentRef: ProjectRef
|
||||
|
||||
/**
|
||||
* Current project of the state session that can be change using `project` commmand.
|
||||
* Current project of the state session that can be change using `project` command.
|
||||
*/
|
||||
def currentProject: ResolvedProject
|
||||
|
||||
|
|
|
|||
|
|
@ -47,9 +47,9 @@ final case class SessionSettings(
|
|||
)
|
||||
|
||||
/**
|
||||
* Modifiy the current state.
|
||||
* Modify the current state.
|
||||
*
|
||||
* @param build The buid with which we scope new settings.
|
||||
* @param build The build with which we scope new settings.
|
||||
* @param project The project reference with which we scope new settings.
|
||||
* @param eval The mechanism to compile new settings.
|
||||
* @return A new SessionSettings object
|
||||
|
|
@ -298,7 +298,7 @@ list, list-all
|
|||
Prints a numbered list of session settings defined.
|
||||
The numbers may be used to remove individual settings or ranges of settings using 'remove'.
|
||||
For 'list', only the settings for the current project are printed.
|
||||
For 'list-all', all settings in all projets are printed.
|
||||
For 'list-all', all settings in all projects are printed.
|
||||
|
||||
remove <range-spec>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import java.nio.file.Path
|
|||
* @param modified the files that have been modified. This should be empty when no previous list of
|
||||
* files is available.
|
||||
* @param unmodified the files that have no changes. This should be empty when no previous list of
|
||||
* files is availab.e
|
||||
* files is available
|
||||
*/
|
||||
final case class FileChanges(
|
||||
created: Seq[Path],
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ private[sbt] object Settings {
|
|||
* Provides an automatically generated clean method for a task that provides fileOutputs.
|
||||
*
|
||||
* @param taskKey the task for which we add a custom clean implementation
|
||||
* @return a task specificic clean implementation
|
||||
* @return a task specific clean implementation
|
||||
*/
|
||||
@nowarn
|
||||
private[sbt] def cleanImpl[T: JsonFormat: ToSeqPath](taskKey: TaskKey[T]): Def.Setting[_] = {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ abstract class DependencyTreeKeys {
|
|||
"The boxes of nodes are painted with colors. Otherwise they're black."
|
||||
)
|
||||
val dependencyDotNodeLabel = settingKey[(String, String, String) => String](
|
||||
"Returns a formated string of a dependency. Takes organization, name and version as parameters"
|
||||
"Returns a formatted string of a dependency. Takes organization, name and version as parameters"
|
||||
)
|
||||
val dependencyDotHeader = settingKey[String](
|
||||
"The header of the dot file. (e.g. to set your preferred node shapes)"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
- Adds a check for a change in sbt version before `reload`. [#1055][1055]/[#3673][3673] by [@RomanIakovlev][@RomanIakovlev]
|
||||
- Adds a new setting `insideCI`, which indicates that sbt is likely running in an Continuous Integration environment. [#3672][3672] by [@RomanIakovlev][@RomanIakovlev]
|
||||
- Adds `nameOption` to `Command` trait. [#3671][3671] by [@miklos-martin][@miklos-martin]
|
||||
- Adds POSIX persmission operations in IO, such as `IO.chmod(..)`. [io#76][io76] by [@eed3si9n][@eed3si9n]
|
||||
- Adds POSIX permission operations in IO, such as `IO.chmod(..)`. [io#76][io76] by [@eed3si9n][@eed3si9n]
|
||||
- Treat sbt 1 modules using Semantic Versioning in the eviction warning. [lm#188][lm188] by [@eed3si9n][@eed3si9n]
|
||||
- Uses kind-projector in the code. [#3650][3650] by [@dwijnand][@dwijnand]
|
||||
- Make `displayOnly` etc methods strict in `Completions`. [#3763][3763] by [@xuwei-k][@xuwei-k]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ package sbt.internal.bsp
|
|||
/**
|
||||
* Scala Test Class Request
|
||||
* The build target scala test options request is sent from the client to the server
|
||||
* to query for the list of fully qualified names of test clases in a given list of targets.
|
||||
* to query for the list of fully qualified names of test classes in a given list of targets.
|
||||
* @param originId An optional number uniquely identifying a client request.
|
||||
*/
|
||||
final class ScalaTestClassesParams private (
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ type ScalaTestParams {
|
|||
|
||||
## Scala Test Class Request
|
||||
## The build target scala test options request is sent from the client to the server
|
||||
## to query for the list of fully qualified names of test clases in a given list of targets.
|
||||
## to query for the list of fully qualified names of test classes in a given list of targets.
|
||||
type ScalaTestClassesParams {
|
||||
targets: [sbt.internal.bsp.BuildTargetIdentifier]
|
||||
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ object Fork {
|
|||
|
||||
/** Use an arguments file if:
|
||||
* - we are on jdk >= 9
|
||||
* - sbt.argfile is unset or not falsy
|
||||
* - sbt.argsfile is unset or not falsy
|
||||
* - the command line length would exceed MaxConcatenatedOptionLength
|
||||
*/
|
||||
private def shouldUseArgumentsFile(options: Seq[String]): Boolean =
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ object BuildServerTest extends AbstractServerTest {
|
|||
s.contains(""""severity":2""") &&
|
||||
s.contains("""missing type arguments for generic class java.util.List""")
|
||||
},
|
||||
"should send publishDiagnostics with serverity 2 for Hello.java"
|
||||
"should send publishDiagnostics with severity 2 for Hello.java"
|
||||
)
|
||||
|
||||
assert(
|
||||
|
|
@ -267,7 +267,7 @@ object BuildServerTest extends AbstractServerTest {
|
|||
s.contains(""""severity":1""") &&
|
||||
s.contains("""incompatible types: int cannot be converted to java.lang.String""")
|
||||
},
|
||||
"should send publishDiagnostics with serverity 1 for Hello.java"
|
||||
"should send publishDiagnostics with severity 1 for Hello.java"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue