Merge pull request #7313 from xuwei-k/typoooo

fix typo
This commit is contained in:
eugene yokota 2023-06-24 17:22:28 -04:00 committed by GitHub
commit 5ba9f3910a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 21 additions and 21 deletions

View File

@ -70,7 +70,7 @@ object SettingsTest extends Properties("settings") {
).toSeq ).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, Some(nr - 1), evaluate(setting(chk, value(0)) +: derivedSettings)) :| "Not derived?"
} && { } && {
checkKey(last, None, evaluate(derivedSettings)) :| "Should not be derived" checkKey(last, None, evaluate(derivedSettings)) :| "Should not be derived"

View File

@ -32,7 +32,7 @@ object EscHelpers {
* *
* The CSI (control sequence instruction) codes start with ESC + '['. This is for testing the second character. * 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. * check for it.
* *
* cf. http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes * cf. http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes

View File

@ -145,7 +145,7 @@ object BasicKeys {
) )
private[sbt] val detachStdio = AttributeKey[Boolean]( private[sbt] val detachStdio = AttributeKey[Boolean](
"detach-stdio", "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 1000
) )
} }

View File

@ -188,7 +188,7 @@ private[sbt] object Server {
IO.write(tokenfile, CompactPrinter(jsonToken), IO.utf8, true) 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 = { private[this] def ownerOnly(file: File): Unit = {
def acl(owner: UserPrincipal) = { def acl(owner: UserPrincipal) = {
val builder = AclEntry.newBuilder val builder = AclEntry.newBuilder

View File

@ -31,7 +31,7 @@ object ServerHandler {
lazy val fallback: ServerHandler = ServerHandler({ handler => lazy val fallback: ServerHandler = ServerHandler({ handler =>
ServerIntent( ServerIntent(
onRequest = { case x => handler.log.debug(s"Unhandled request received: ${x.method}: $x") }, 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 = { onNotification = {
case x => handler.log.debug(s"Unhandled notification received: ${x.method}: $x") case x => handler.log.debug(s"Unhandled notification received: ${x.method}: $x")
}, },

View File

@ -45,7 +45,7 @@ abstract class BackgroundJobService extends Closeable {
start(logger, file)._2.apply() start(logger, file)._2.apply()
} }
/** Same as shutown. */ /** Same as shutdown. */
def close(): Unit def close(): Unit
/** Shuts down all background jobs. */ /** Shuts down all background jobs. */

View File

@ -9,7 +9,7 @@
package sbt 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 * In the future this could be used to ask for inputs from
* other forms of sbt clients such as thin clients and IDEs. * other forms of sbt clients such as thin clients and IDEs.
*/ */

View File

@ -19,12 +19,12 @@ trait UpperStateOps extends Any {
/** /**
* ProjectRef to the current project of the state session that can be change using * ProjectRef to the current project of the state session that can be change using
* `project` commmand. * `project` command.
*/ */
def currentRef: ProjectRef 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 def currentProject: ResolvedProject

View File

@ -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 project The project reference with which we scope new settings.
* @param eval The mechanism to compile new settings. * @param eval The mechanism to compile new settings.
* @return A new SessionSettings object * @return A new SessionSettings object
@ -298,7 +298,7 @@ list, list-all
Prints a numbered list of session settings defined. Prints a numbered list of session settings defined.
The numbers may be used to remove individual settings or ranges of settings using 'remove'. 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', 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> remove <range-spec>

View File

@ -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 * @param modified the files that have been modified. This should be empty when no previous list of
* files is available. * files is available.
* @param unmodified the files that have no changes. This should be empty when no previous list of * @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( final case class FileChanges(
created: Seq[Path], created: Seq[Path],

View File

@ -260,7 +260,7 @@ private[sbt] object Settings {
* Provides an automatically generated clean method for a task that provides fileOutputs. * Provides an automatically generated clean method for a task that provides fileOutputs.
* *
* @param taskKey the task for which we add a custom clean implementation * @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 @nowarn
private[sbt] def cleanImpl[T: JsonFormat: ToSeqPath](taskKey: TaskKey[T]): Def.Setting[_] = { private[sbt] def cleanImpl[T: JsonFormat: ToSeqPath](taskKey: TaskKey[T]): Def.Setting[_] = {

View File

@ -46,7 +46,7 @@ abstract class DependencyTreeKeys {
"The boxes of nodes are painted with colors. Otherwise they're black." "The boxes of nodes are painted with colors. Otherwise they're black."
) )
val dependencyDotNodeLabel = settingKey[(String, String, String) => String]( 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]( val dependencyDotHeader = settingKey[String](
"The header of the dot file. (e.g. to set your preferred node shapes)" "The header of the dot file. (e.g. to set your preferred node shapes)"

View File

@ -44,7 +44,7 @@
- Adds a check for a change in sbt version before `reload`. [#1055][1055]/[#3673][3673] by [@RomanIakovlev][@RomanIakovlev] - 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 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 `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] - 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] - 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] - Make `displayOnly` etc methods strict in `Completions`. [#3763][3763] by [@xuwei-k][@xuwei-k]

View File

@ -7,7 +7,7 @@ package sbt.internal.bsp
/** /**
* Scala Test Class Request * Scala Test Class Request
* The build target scala test options request is sent from the client to the server * 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. * @param originId An optional number uniquely identifying a client request.
*/ */
final class ScalaTestClassesParams private ( final class ScalaTestClassesParams private (

View File

@ -715,7 +715,7 @@ type ScalaTestParams {
## Scala Test Class Request ## Scala Test Class Request
## The build target scala test options request is sent from the client to the server ## 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 { type ScalaTestClassesParams {
targets: [sbt.internal.bsp.BuildTargetIdentifier] targets: [sbt.internal.bsp.BuildTargetIdentifier]

View File

@ -155,7 +155,7 @@ object Fork {
/** Use an arguments file if: /** Use an arguments file if:
* - we are on jdk >= 9 * - 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 * - the command line length would exceed MaxConcatenatedOptionLength
*/ */
private def shouldUseArgumentsFile(options: Seq[String]): Boolean = private def shouldUseArgumentsFile(options: Seq[String]): Boolean =

View File

@ -257,7 +257,7 @@ object BuildServerTest extends AbstractServerTest {
s.contains(""""severity":2""") && s.contains(""""severity":2""") &&
s.contains("""missing type arguments for generic class java.util.List""") 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( assert(
@ -267,7 +267,7 @@ object BuildServerTest extends AbstractServerTest {
s.contains(""""severity":1""") && s.contains(""""severity":1""") &&
s.contains("""incompatible types: int cannot be converted to java.lang.String""") 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"
) )
} }