Skip to content

Commit a19d50a

Browse files
lwronskiGedochao
andauthored
Bump case-app to 2.1.0-M23 (#1868)
Co-authored-by: Piotr Chabelski <[email protected]>
1 parent f571052 commit a19d50a

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

modules/cli/src/main/scala/scala/cli/commands/ScalaCommand.scala

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,14 @@ abstract class ScalaCommand[T <: HasLoggingOptions](implicit myParser: Parser[T]
109109
override def completer: Completer[T] = {
110110
val parent = super.completer
111111
new Completer[T] {
112-
def optionName(prefix: String, state: Option[T]): List[CompletionItem] =
113-
parent.optionName(prefix, state)
114-
def optionValue(arg: Arg, prefix: String, state: Option[T]): List[CompletionItem] = {
112+
def optionName(prefix: String, state: Option[T], args: RemainingArgs): List[CompletionItem] =
113+
parent.optionName(prefix, state, args)
114+
def optionValue(
115+
arg: Arg,
116+
prefix: String,
117+
state: Option[T],
118+
args: RemainingArgs
119+
): List[CompletionItem] = {
115120
val candidates = arg.name.name match {
116121
case "dependency" =>
117122
state.flatMap(sharedOptions).toList.flatMap { sharedOptions =>
@@ -142,10 +147,10 @@ abstract class ScalaCommand[T <: HasLoggingOptions](implicit myParser: Parser[T]
142147
case "repository" => Nil // TODO
143148
case _ => Nil
144149
}
145-
candidates ++ parent.optionValue(arg, prefix, state)
150+
candidates ++ parent.optionValue(arg, prefix, state, args)
146151
}
147-
def argument(prefix: String, state: Option[T]): List[CompletionItem] =
148-
parent.argument(prefix, state)
152+
def argument(prefix: String, state: Option[T], args: RemainingArgs): List[CompletionItem] =
153+
parent.argument(prefix, state, args)
149154
}
150155
}
151156

project/deps.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ object Deps {
100100
// Force using of 2.13 - is there a better way?
101101
def bloopConfig = ivy"ch.epfl.scala:bloop-config_2.13:1.5.5"
102102
def bsp4j = ivy"ch.epfl.scala:bsp4j:2.1.0-M3"
103-
def caseApp = ivy"com.github.alexarchambault::case-app:2.1.0-M22"
103+
def caseApp = ivy"com.github.alexarchambault::case-app:2.1.0-M23"
104104
def collectionCompat = ivy"org.scala-lang.modules::scala-collection-compat:2.9.0"
105105
// Force using of 2.13 - is there a better way?
106106
def coursier = ivy"io.get-coursier:coursier_2.13:${Versions.coursier}"

0 commit comments

Comments
 (0)